Object
@private
# File lib/shoulda/matchers/active_model/exception_message_finder.rb, line 12 def allow_description(allowed_values) "doesn't raise when #{@attribute} is set to #{allowed_values}" end
# File lib/shoulda/matchers/active_model/exception_message_finder.rb, line 36 def expected_message_from(attribute_message) "#{human_attribute_name} #{attribute_message}" end
# File lib/shoulda/matchers/active_model/exception_message_finder.rb, line 24 def has_messages? messages.any? end
# File lib/shoulda/matchers/active_model/exception_message_finder.rb, line 28 def messages @messages ||= validate_and_rescue end
Generated with the Darkfish Rdoc Generator 2.