class ActionController::TestCase

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