Sha256: 7ec229fe9a30bc2502f6d4f844adbcb6c1e94fe6a6883efbdb75e216891c13c9
Contents?: true
Size: 543 Bytes
Versions: 4
Compression:
Stored size: 543 Bytes
Contents
class Object def should(matcher=nil) 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.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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mspec-1.0.0 | lib/mspec/expectations/should.rb |
mspec-1.1.1 | lib/mspec/expectations/should.rb |
mspec-1.1.0 | lib/mspec/expectations/should.rb |
mspec-1.2.0 | lib/mspec/expectations/should.rb |