Module: Sanitize::Rails::Matchers::RSpec2
- Defined in:
- lib/sanitize/rails/matchers.rb
Overview
RSpec 2 syntax
Instance Method Summary collapse
Instance Method Details
#failure_message_for_should ⇒ Object
49 50 51 |
# File 'lib/sanitize/rails/matchers.rb', line 49 def "Expected #{should_helper} to return sanitized value '#{valid_value}', got '#{attribute_values}'" end |
#failure_message_for_should_not ⇒ Object
53 54 55 |
# File 'lib/sanitize/rails/matchers.rb', line 53 def "Expected #{field_helper} not to be sanitized" end |