X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/23c3168c55a2be7fd0176e235c12d8338d6b0a17..72855280e75474735d0c2b65aae55a68eda71462:/test/integration/user_login_test.rb?ds=sidebyside diff --git a/test/integration/user_login_test.rb b/test/integration/user_login_test.rb index 5652955c7..d027334d0 100644 --- a/test/integration/user_login_test.rb +++ b/test/integration/user_login_test.rb @@ -1,7 +1,7 @@ require "test_helper" class UserLoginTest < ActionDispatch::IntegrationTest - fixtures :users + fixtures :users, :user_roles def setup OmniAuth.config.test_mode = true @@ -555,7 +555,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest assert_template "changeset/history" assert_select "span.username", "openIDuser" - user = User.find_by_display_name("openIDuser") + user = User.find_by(:display_name => "openIDuser") assert_equal "google", user.auth_provider assert_equal "987654321", user.auth_uid end