lib/test/reckon.rb
# Performs the actual test by calling the _verb_ on the _subject_ with the _object_ as argument. You never call this method
# directly, but mostly through one of the _verbs_. For instance:
#
#   expects(1).test('>', 2)
#
# Is equal to:
#
#   expects(1) > 2
#
# The result of the test is compared to the expected +test_result+ and the result is reported to the Reporter singleton.
Performs the actual test by calling the _verb_ on the _subject_ with the _object_ as argument. You never call this method
directly, but mostly through one of the _verbs_. For instance.







The result of the test is compared to the expected +test_result+ and the result is reported to the Reporter singleton.
Performs the actual test by calling the _verb_ on the _subject_ with the _object_ as argument . You never call this method directly but mostly through one of the _verbs_ . For instance . The result of the test is compared to the expected + test_result + and the result is reported to the Reporter singleton .
def test(verb, object)
        if !!@subject.send(verb, object) == @test_result
          Test::Reckon::Reporter.instance.add_success
        else
          Test::Reckon::Reporter.instance.add_failure(@test_description,
            "#{@subject.inspect} #{VERB_MAP[verb][!@test_result]} #{object.inspect}"
          )
        end
      end
def test ( verb , object ) if ! ! @subject . send ( verb , object ) == @test_result Test :: Reckon :: Reporter . instance . add_success else Test :: Reckon :: Reporter . instance . add_failure ( @test_description , "#{@subject.inspect} #{VERB_MAP[verb][!@test_result]} #{object.inspect}" ) end end
Performs the actual test by calling the _verb_ on the _subject_ with the _object_ as argument.
Performs the actual test by calling the _verb_ on the _subject_ with the _object_ as argument .
verb
object