X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9f61d6c1cf2d796ba8089f299679c2496ecfbbca..24ccba60cb3666272d18ebb7585a6beacf77a7bf:/test/helpers/user_helper_test.rb
diff --git a/test/helpers/user_helper_test.rb b/test/helpers/user_helper_test.rb
index 8cef4d2dc..16c854a51 100644
--- a/test/helpers/user_helper_test.rb
+++ b/test/helpers/user_helper_test.rb
@@ -8,12 +8,12 @@ class UserHelperTest < ActionView::TestCase
gravatar_user = create(:user, :image_use_gravatar => true)
image = user_image(user)
- assert_match %r{^$}, image
+ assert_match %r{^$}, image
image = user_image(user, :class => "foo")
- assert_match %r{^$}, image
+ assert_match %r{^$}, image
image = user_image(gravatar_user)
- assert_match %r{^$}, image
+ assert_match %r{^$}, image
image = user_image(gravatar_user, :class => "foo")
assert_match %r{^$}, image
@@ -24,13 +24,13 @@ class UserHelperTest < ActionView::TestCase
gravatar_user = create(:user, :image_use_gravatar => true)
image = user_thumbnail(user)
- assert_match %r{^$}, image
+ assert_match %r{^$}, image
image = user_thumbnail(user, :class => "foo")
- assert_match %r{^$}, image
+ assert_match %r{^$}, image
image = user_thumbnail(gravatar_user)
- assert_match %r{^$}, image
+ assert_match %r{^$}, image
image = user_thumbnail(gravatar_user, :class => "foo")
assert_match %r{^$}, image
@@ -41,13 +41,13 @@ class UserHelperTest < ActionView::TestCase
gravatar_user = create(:user, :image_use_gravatar => true)
image = user_thumbnail_tiny(user)
- assert_match %r{^$}, image
+ assert_match %r{^$}, image
image = user_thumbnail_tiny(user, :class => "foo")
- assert_match %r{^$}, image
+ assert_match %r{^$}, image
image = user_thumbnail_tiny(gravatar_user)
- assert_match %r{^$}, image
+ assert_match %r{^$}, image
image = user_thumbnail_tiny(gravatar_user, :class => "foo")
assert_match %r{^$}, image
@@ -109,17 +109,10 @@ class UserHelperTest < ActionView::TestCase
assert_match %r{^$}, thumbnail
end
- def test_openid_logo
- logo = openid_logo
- assert_match %r{^$}, logo
- end
-
def test_auth_button
- button = auth_button("google", "google")
- assert_equal("", button)
-
- button = auth_button("wordpress", "openid", :openid_url => "wordpress.com")
- assert_equal("", button)
+ button = auth_button("google")
+ img_tag = ""
+ assert_equal("#{img_tag}", button)
end
private