]> git.openstreetmap.org Git - rails.git/blobdiff - test/helpers/social_share_button_helper_test.rb
Merge pull request #5413 from tomhughes/social-share-helper
[rails.git] / test / helpers / social_share_button_helper_test.rb
index 9c7569334d04a423f2482edb4351a519d3737b3a..397cbd11235db2878657874e50656d4f2e02878c 100644 (file)
@@ -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