Sha256: 48a91586013adf51e97f77488b796342b5f532c6217afecdcded420eb140f880
Contents?: true
Size: 679 Bytes
Versions: 2
Compression:
Stored size: 679 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_should_not 3.should_not(@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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
jeremymcanally-matchy-0.0.1 | test/test_modals.rb |
lucashungaro-matchy-0.0.2 | test/test_modals.rb |