fix for :host getting overwritten in scope[:options] and thus not generating URLs with correct hostnames

This commit is contained in:
Michael Reinsch
2012-02-17 19:14:42 +09:00
parent 2e27d1f763
commit 0315ca2701
3 changed files with 10 additions and 1 deletions

View File

@@ -128,6 +128,10 @@ class CustomizedRoutingTest < ActionController::TestCase
end
end
test 'subdomain admin' do
assert_recognizes({"host"=>"sub.example.com", :controller => 'devise/sessions', :action => 'new'}, {:host => "sub.example.com", :path => '/sub_admin/sign_in', :method => :get})
end
test 'does only map reader password' do
assert_raise ActionController::RoutingError do
assert_recognizes({:controller => 'devise/sessions', :action => 'new'}, 'reader/sessions/new')