mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-09 14:58:05 -05:00
omniauth route should not add a ? if no param is given
This commit is contained in:
committed by
José Valim
parent
bf19b15914
commit
09a46695f2
@@ -36,7 +36,12 @@ class OmniAuthRoutesTest < ActionController::TestCase
|
||||
end
|
||||
|
||||
test 'should generate authorization path with params' do
|
||||
assert_match "/users/auth/open_id?openid_url=http%3A%2F%2Fyahoo.com",
|
||||
assert_match "/users/auth/open_id?openid_url=http%3A%2F%2Fyahoo.com",
|
||||
@controller.omniauth_authorize_path(:user, :open_id, :openid_url => "http://yahoo.com")
|
||||
end
|
||||
|
||||
test 'should not add a "?" if no param was sent' do
|
||||
assert_equal "/users/auth/open_id",
|
||||
@controller.omniauth_authorize_path(:user, :open_id)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user