X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4627b79885a53043001383679e83fafacf5c6193..7cc1cc618d1512314a5942188db58f03113fe56e:/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