X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/95e1aff23493b3725d5259bcca7bcc79d7d3bc26..0931f474836d12d24a11564e77dcb1bb69b170dc:/test/helpers/social_share_button_helper_test.rb?ds=inline diff --git a/test/helpers/social_share_button_helper_test.rb b/test/helpers/social_share_button_helper_test.rb index 9c7569334..397cbd112 100644 --- a/test/helpers/social_share_button_helper_test.rb +++ b/test/helpers/social_share_button_helper_test.rb @@ -2,7 +2,6 @@ require "test_helper" class SocialShareButtonHelperTest < ActionView::TestCase include SocialShareButtonHelper - include ApplicationHelper def setup @options = { @@ -34,15 +33,4 @@ class SocialShareButtonHelperTest < ActionView::TestCase assert_includes result, site.to_s # Convert symbol to string end end - - def test_filter_allowed_sites - valid_sites, invalid_sites = SocialShareButtonHelper.filter_allowed_sites(%w[x facebook invalid_site]) - assert_equal %w[x facebook], valid_sites - assert_equal %w[invalid_site], invalid_sites - end - - def test_icon_path - assert_equal "social_icons/x.svg", SocialShareButtonHelper.icon_path("x") - assert_equal "", SocialShareButtonHelper.icon_path("invalid_site") - end end