Parent

Class/Module Index [+]

Quicksearch

Shoulda::Matchers::ActionController::FilterParamMatcher

@private

Public Class Methods

new(key) click to toggle source
# File lib/shoulda/matchers/action_controller/filter_param_matcher.rb, line 30
def initialize(key)
  @key = key.to_s
end

Public Instance Methods

description() click to toggle source
# File lib/shoulda/matchers/action_controller/filter_param_matcher.rb, line 48
def description
  "filter #{@key}"
end
failure_message() click to toggle source
# File lib/shoulda/matchers/action_controller/filter_param_matcher.rb, line 38
def failure_message
  "Expected #{@key} to be filtered; filtered keys: #{filtered_keys.join(', ')}"
end
Also aliased as: failure_message_for_should
failure_message_for_should() click to toggle source
Alias for: failure_message
failure_message_for_should_not() click to toggle source
failure_message_when_negated() click to toggle source
# File lib/shoulda/matchers/action_controller/filter_param_matcher.rb, line 43
def failure_message_when_negated
  "Did not expect #{@key} to be filtered"
end
matches?(controller) click to toggle source
# File lib/shoulda/matchers/action_controller/filter_param_matcher.rb, line 34
def matches?(controller)
  filters_key?
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.