Object
Finds message information from a model's errors method.
# File lib/shoulda/matchers/active_model/validation_message_finder.rb, line 15 def allow_description(allowed_values) "allow #{@attribute} to be set to #{allowed_values}" end
# File lib/shoulda/matchers/active_model/validation_message_finder.rb, line 19 def expected_message_from(attribute_message) attribute_message end
# File lib/shoulda/matchers/active_model/validation_message_finder.rb, line 23 def has_messages? errors.present? end
# File lib/shoulda/matchers/active_model/validation_message_finder.rb, line 39 def messages Array.wrap(messages_for_attribute) end
Generated with the Darkfish Rdoc Generator 2.