# File lib/shoulda/assertions.rb, line 64 64: def assert_rejects(matcher, target, options = {}) 65: if matcher.respond_to?(:in_context) 66: matcher.in_context(self) 67: end 68: 69: unless matcher.matches?(target) 70: assert_block { true } 71: if options[:message] 72: assert_match options[:message], matcher.failure_message 73: end 74: else 75: assert_block(matcher.negative_failure_message) { false } 76: end 77: end