Sha256: 1f6eff4fd730138f1aeaa587b956d1c6fb5cc677b012cc7d127078b96dc48aff
Contents?: true
Size: 845 Bytes
Versions: 12
Compression:
Stored size: 845 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper.rb' class TestModals < Test::Unit::TestCase def setup @expectation = Matchy::Expectations::EqlExpectation.new(3, self) @bad_expectation = Matchy::Expectations::EqlExpectation.new(4, self) end def test_should 3.should(@expectation) end def test_will 3.will(@expectation) end def test_should_not 3.should_not(@bad_expectation) end def test_will_not 3.will_not(@bad_expectation) end def test_wont 3.wont(@bad_expectation) end def test_should_operator_expectation_returned obj = 3.should assert_equal Matchy::Expectations::OperatorExpectation, obj.class end def test_should_not_operator_expectation_returned obj = 3.should_not assert_equal Matchy::Expectations::OperatorExpectation, obj.class end end
Version data entries
12 entries across 12 versions & 2 rubygems