Module: Sanitize::Rails::Matchers::RSpec3

Defined in:
lib/sanitize/rails/matchers.rb

Overview

RSpec 3 syntax

Instance Method Summary collapse

Instance Method Details

#failure_messageObject



36
37
38
# File 'lib/sanitize/rails/matchers.rb', line 36

def failure_message
  "Expected #{should_helper} to return sanitized value '#{valid_value}', got '#{attribute_values}'"
end

#failure_message_when_negatedObject



40
41
42
# File 'lib/sanitize/rails/matchers.rb', line 40

def failure_message_when_negated
  "Expected #{field_helper} not to be sanitized"
end