X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2b2264ddab13ee8ffa7e90d8b803d1a0296a7cff..1aff968589b30a8272b9bbffb8f380f66b143b0d:/test/integration/user_creation_test.rb?ds=sidebyside diff --git a/test/integration/user_creation_test.rb b/test/integration/user_creation_test.rb index 940eb3044..6c6a10447 100644 --- a/test/integration/user_creation_test.rb +++ b/test/integration/user_creation_test.rb @@ -40,7 +40,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest end assert_response :success assert_template "user/new" - assert_equal response.headers["Content-Language"][0..1], locale.to_s[0..1] unless locale == :root + assert_equal locale.to_s, response.headers["Content-Language"] unless locale == :root assert_select "form > fieldset > div.form-row > input.field_with_errors#user_email" assert_no_missing_translations end @@ -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"