X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7e7ede890e8e948236d3dbc48e24aca00cd01f62..5ce51e974886e4671d97cc4fd7b231874ae4023e:/test/helpers/social_share_button_helper_test.rb 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