Exception: MoreAssay

Inherits:
CompareAssay show all
Defined in:
lib/assay/more_assay.rb

Overview

Compare assertion is used to test a comparision made by ‘#>`.

Constant Summary

Constants inherited from Assertion

Assertion::SIZE_LIMIT

Constants included from Assay::Assertable

Assay::Assertable::SIZE_LIMIT

Class Method Summary collapse

Methods inherited from CompareAssay

assert_message

Methods inherited from Assertion

by_name, by_operator, inherited, register, subclasses

Methods included from Assay::Assertable

#[], #assert!, #assert_message, #assertive_name, #assertor, #fail?, #operator, #pass?, #refute!, #refute_message

Class Method Details

.pass?(subject, criterion) ⇒ Boolean

Check assertion using ‘#>` method call.

Returns:

  • (Boolean)


13
14
15
# File 'lib/assay/more_assay.rb', line 13

def self.pass?(subject, criterion)
  subject > criterion
end