Module: ActionController::TestCase::Behavior

Defined in:
lib/bot-away/test_case/controller_test_case.rb

Overview

note that this only matters for TEST requests; real ones use the params parser.

Instance Method Summary collapse

Instance Method Details

#process_with_deobfuscation(action, parameters = nil, session = nil, flash = nil, http_method = 'GET') ⇒ Object



4
5
6
7
# File 'lib/bot-away/test_case/controller_test_case.rb', line 4

def process_with_deobfuscation(action, parameters = nil, session = nil, flash = nil, http_method = 'GET')
  parameters = BotAway::ParamParser.new(request.ip, (parameters || {}).with_indifferent_access).params
  process_without_deobfuscation(action, parameters, session, flash, http_method)
end