class Shoulda::Matchers::ActionController::FilterParamMatcher

:nodoc:

def description

def description
  "filter #{@key}"
end

def failure_message

def failure_message
  "Expected #{@key} to be filtered; filtered keys: #{filtered_keys.join(', ')}"
end

def filtered_keys

def filtered_keys
  Rails.application.config.filter_parameters.map(&:to_s)
end

def filters_key?

def filters_key?
  filtered_keys.include?(@key)
end

def initialize(key)

:nodoc:
def initialize(key)
  @key = key.to_s
end

def matches?(controller)

def matches?(controller)
  @controller = controller
  filters_key?
end

def negative_failure_message

def negative_failure_message
  "Did not expect #{@key} to be filtered"
end