Fix a bug where passing :format => false to devise_for was permanent, closes #1504

This commit is contained in:
José Valim
2011-12-12 09:25:19 +01:00
parent 5a11c6597c
commit 5eebf74f69
3 changed files with 14 additions and 10 deletions

View File

@@ -225,6 +225,10 @@ class CustomizedRoutingTest < ActionController::TestCase
assert_recognizes({:controller => 'devise/unlocks', :action => 'show'}, {:path => '/htmlonly_users/unlock.xml', :method => :get})
end
end
test 'map with format false is not permanent' do
assert_equal "/set.xml", @routes.url_helpers.set_path(:xml)
end
end
class ScopedRoutingTest < ActionController::TestCase