Do not rely on controller being available in params.

This commit is contained in:
José Valim
2010-09-25 11:21:51 +02:00
parent b6089145c1
commit c12d75eecf
3 changed files with 6 additions and 6 deletions

View File

@@ -136,8 +136,7 @@ class FailureTest < ActiveSupport::TestCase
context 'With recall' do
test 'calls the original controller' do
env = {
"action_dispatch.request.parameters" => { :controller => "devise/sessions" },
"warden.options" => { :recall => "new", :attempted_path => "/users/sign_in" },
"warden.options" => { :recall => "devise/sessions#new", :attempted_path => "/users/sign_in" },
"devise.mapping" => Devise.mappings[:user],
"warden" => stub_everything
}