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_shouldObject



49
50
51
# 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_notObject



53
54
55
# File 'lib/sanitize/rails/matchers.rb', line 53

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