Module: Sanitize::Rails::Matchers::RSpec3
- Defined in:
- lib/sanitize/rails/matchers.rb
Overview
RSpec 3 syntax
Instance Method Summary collapse
Instance Method Details
#failure_message ⇒ Object
36 37 38 |
# File 'lib/sanitize/rails/matchers.rb', line 36 def "Expected #{should_helper} to return sanitized value '#{valid_value}', got '#{attribute_values}'" end |
#failure_message_when_negated ⇒ Object
40 41 42 |
# File 'lib/sanitize/rails/matchers.rb', line 40 def "Expected #{field_helper} not to be sanitized" end |