Class: ActionController::TestCase
- Inherits:
-
Object
- Object
- ActionController::TestCase
- Defined in:
- lib/controller_test_helper.rb
Overview
This monkey patch injects the locale in the controller’s params Reason: ActionController::TestCase doesn’t support “default_url_options”
Example: when the request you are testing needs the locale, e.g.
get :show, :id => 1, :locale => 'en'
if the monkey patch was loaded, you can just do:
get :show, :id => 1
Defined Under Namespace
Modules: Behavior