]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/user_login_test.rb
Fix rubocop warnings
[rails.git] / test / integration / user_login_test.rb
index 5652955c75fafa30e5f0d7e1147e75134b4c9109..86b9390d8014330ea7a392c0e1a38ecee0bfc4cf 100644 (file)
@@ -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