Sha256: a0ac4859a1a71f736aa9912dd58c9672c04a697a4be2c49181fca69fa78579f6
Contents?: true
Size: 810 Bytes
Versions: 3
Compression:
Stored size: 810 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper.rb' class TestModals < Matchy.test_case_class def setup @expectation = build_matcher() {|r,m,a| true} @bad_expectation = build_matcher() {|r,m,a| false} 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mcmire-matchy-0.5.2 | test/test_modals.rb |
mcmire-matchy-0.5.1 | test/test_modals.rb |
mcmire-matchy-0.5.0 | test/test_modals.rb |