# File lib/shoulda/assertions.rb, line 60 60: def assert_rejects(matcher, target, options = {}) 61: unless matcher.matches?(target) 62: assert_block { true } 63: if options[:message] 64: assert_match options[:message], matcher.failure_message 65: end 66: else 67: assert_block(matcher.negative_failure_message) { false } 68: end 69: end