# File lib/mspec/expectations/should.rb, line 3 3: def should(matcher=NO_MATCHER_GIVEN) 4: MSpec.expectation 5: MSpec.actions :expectation, MSpec.current.state 6: unless matcher.equal?(NO_MATCHER_GIVEN) 7: unless matcher.matches?(self) 8: SpecExpectation.fail_with(*matcher.failure_message) 9: end 10: else 11: SpecPositiveOperatorMatcher.new(self) 12: end 13: end