module Sanitize::Rails::Matchers::RSpec2

RSpec 2 syntax

Public Instance Methods

failure_message_for_should() click to toggle source
# File lib/sanitize/rails/matchers.rb, line 49
def failure_message_for_should
  "Expected #{should_helper} to return sanitized value '#{valid_value}', got '#{attribute_values}'"
end
failure_message_for_should_not() click to toggle source
# File lib/sanitize/rails/matchers.rb, line 53
def failure_message_for_should_not
  "Expected #{field_helper} not to be sanitized"
end