Sha256: 19bb12df8d5e8b819b3fcd062475d76a54be5809d6702096fcb4b94e49926968
Contents?: true
Size: 587 Bytes
Versions: 126
Compression:
Stored size: 587 Bytes
Contents
class Object def should(matcher=nil) MSpec.expectation MSpec.actions :expectation, MSpec.current.state if matcher unless matcher.matches?(self) Expectation.fail_with(*matcher.failure_message) end else PositiveOperatorMatcher.new(self) end end def should_not(matcher=nil) MSpec.expectation MSpec.actions :expectation, MSpec.current.state if matcher if matcher.matches?(self) Expectation.fail_with(*matcher.negative_failure_message) end else NegativeOperatorMatcher.new(self) end end end
Version data entries
126 entries across 102 versions & 3 rubygems