X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/783b5e3729228908d7404ae7404af1023501a906..2312dd902e96786649ad9289c425a22ec73fbd80:/test/helpers/user_helper_test.rb?ds=inline diff --git a/test/helpers/user_helper_test.rb b/test/helpers/user_helper_test.rb index 397a90a63..758baa1cb 100644 --- a/test/helpers/user_helper_test.rb +++ b/test/helpers/user_helper_test.rb @@ -60,7 +60,7 @@ class UserHelperTest < ActionView::TestCase gravatar_user = create(:user, :image_use_gravatar => true) url = user_image_url(user) - assert_match %r{^http://test.host/rails/active_storage/representations/[^/]+/[^/]+/a.gif$}, url + assert_match %r{^http://test.host/rails/active_storage/representations/redirect/[^/]+/[^/]+/a.gif$}, url url = user_image_url(gravatar_user) assert_match %r{^http://www.gravatar.com/avatar/}, url @@ -73,10 +73,10 @@ class UserHelperTest < ActionView::TestCase def test_auth_button button = auth_button("google", "google") - assert_equal button, "\"Login" + assert_equal("\"Login", button) - button = auth_button("yahoo", "openid", :openid_url => "yahoo.com") - assert_equal button, "\"Login" + button = auth_button("wordpress", "openid", :openid_url => "wordpress.com") + assert_equal("\"Login", button) end private