Sha256: 97b5e12dba61fca573c7996c2a0cc2d10002045d648bddad5910f2df8223477c
Contents?: true
Size: 972 Bytes
Versions: 5
Compression:
Stored size: 972 Bytes
Contents
class Test::Spec::Should alias :_test_spec_equal :equal def equal(*args) @object.respond_to?(:should_equal) ? @object.should_equal(*args) : _test_spec_equal(*args) end alias :_test_spec_be :be def be(*args) @object.respond_to?(:should_equal) ? @object.should_equal(*args) : _test_spec_be(*args) end end class Test::Spec::ShouldNot alias :_test_spec_equal :equal def equal(*args) @object.respond_to?(:should_not_equal) ? @object.should_not_equal(*args) : _test_spec_equal(*args) end alias :_test_spec_be :be def be(*args) @object.respond_to?(:should_not_equal) ? @object.should_not_equal(*args) : _test_spec_be(*args) end end module Test module Spec module ExpectationExt # Returns the current test case instance. Use this to call assert methods on. def test_case $TEST_SPEC_TESTCASE end end Should.send(:include, ExpectationExt) ShouldNot.send(:include, ExpectationExt) end end
Version data entries
5 entries across 5 versions & 2 rubygems