# File lib/shoulda/matchers/active_model/validate_acceptance_of_matcher.rb, line 73defdescription"require #{@attribute} to be accepted"end
matches?(subject)click to toggle source
# File lib/shoulda/matchers/active_model/validate_acceptance_of_matcher.rb, line 67defmatches?(subject)
super(subject)
@expected_message||=:accepteddisallows_value_of(false, @expected_message)
end
with_message(message)click to toggle source
# File lib/shoulda/matchers/active_model/validate_acceptance_of_matcher.rb, line 60defwith_message(message)
ifmessage@expected_message = messageendselfend