Remove bogus mock data from facebook and windowslive tests
This commit is contained in:
parent
957d75295b
commit
e07890a2ad
2 changed files with 8 additions and 24 deletions
|
@ -385,9 +385,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
end
|
||||
|
||||
def test_user_create_facebook_success
|
||||
OmniAuth.config.add_mock(:facebook, :uid => "123454321", :extra => {
|
||||
:id_info => { "openid_id" => "http://localhost:1123/new.tester" }
|
||||
})
|
||||
OmniAuth.config.add_mock(:facebook, :uid => "123454321")
|
||||
|
||||
new_email = "newtester-facebook@osm.org"
|
||||
display_name = "new_tester-facebook"
|
||||
|
@ -447,9 +445,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
end
|
||||
|
||||
def test_user_create_facebook_redirect
|
||||
OmniAuth.config.add_mock(:facebook, :uid => "123454321", :extra => {
|
||||
:id_info => { "openid_id" => "http://localhost:1123/new.tester" }
|
||||
})
|
||||
OmniAuth.config.add_mock(:facebook, :uid => "123454321")
|
||||
|
||||
new_email = "redirect_tester_facebook@osm.org"
|
||||
display_name = "redirect_tester_facebook"
|
||||
|
@ -502,9 +498,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
end
|
||||
|
||||
def test_user_create_windowslive_success
|
||||
OmniAuth.config.add_mock(:windowslive, :uid => "123454321", :extra => {
|
||||
:id_info => { "openid_id" => "http://localhost:1123/new.tester" }
|
||||
})
|
||||
OmniAuth.config.add_mock(:windowslive, :uid => "123454321")
|
||||
|
||||
new_email = "newtester-windowslive@osm.org"
|
||||
display_name = "new_tester-windowslive"
|
||||
|
@ -564,9 +558,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
end
|
||||
|
||||
def test_user_create_windowslive_redirect
|
||||
OmniAuth.config.add_mock(:windowslive, :uid => "123454321", :extra => {
|
||||
:id_info => { "openid_id" => "http://localhost:1123/new.tester" }
|
||||
})
|
||||
OmniAuth.config.add_mock(:windowslive, :uid => "123454321")
|
||||
|
||||
new_email = "redirect_tester_windowslive@osm.org"
|
||||
display_name = "redirect_tester_windowslive"
|
||||
|
|
|
@ -972,9 +972,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
end
|
||||
|
||||
def test_login_facebook_success
|
||||
OmniAuth.config.add_mock(:facebook, :uid => "123456789", :extra => {
|
||||
:id_info => { "openid_id" => "http://localhost:1123/fred.bloggs" }
|
||||
})
|
||||
OmniAuth.config.add_mock(:facebook, :uid => "123456789")
|
||||
|
||||
get "/login", :referer => "/history"
|
||||
assert_response :redirect
|
||||
|
@ -1042,9 +1040,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
end
|
||||
|
||||
def test_login_facebook_unknown
|
||||
OmniAuth.config.add_mock(:facebook, :uid => "987654321", :extra => {
|
||||
:id_info => { "openid_id" => "http://localhost:1123/fred.bloggs" }
|
||||
})
|
||||
OmniAuth.config.add_mock(:facebook, :uid => "987654321")
|
||||
|
||||
get "/login", :referer => "/history"
|
||||
assert_response :redirect
|
||||
|
@ -1064,9 +1060,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
end
|
||||
|
||||
def test_login_windowslive_success
|
||||
OmniAuth.config.add_mock(:windowslive, :uid => "123456789", :extra => {
|
||||
:id_info => { "openid_id" => "http://localhost:1123/fred.bloggs" }
|
||||
})
|
||||
OmniAuth.config.add_mock(:windowslive, :uid => "123456789")
|
||||
|
||||
get "/login", :referer => "/history"
|
||||
assert_response :redirect
|
||||
|
@ -1134,9 +1128,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
end
|
||||
|
||||
def test_login_windowslive_unknown
|
||||
OmniAuth.config.add_mock(:windowslive, :uid => "987654321", :extra => {
|
||||
:id_info => { "openid_id" => "http://localhost:1123/fred.bloggs" }
|
||||
})
|
||||
OmniAuth.config.add_mock(:windowslive, :uid => "987654321")
|
||||
|
||||
get "/login", :referer => "/history"
|
||||
assert_response :redirect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue