mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-09 14:58:05 -05:00
fix for :host getting overwritten in scope[:options] and thus not generating URLs with correct hostnames
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user