]> git.openstreetmap.org Git - rails.git/blob - test/helpers/social_share_button_helper_test.rb
Drop unused ability to filter social sharing sites
[rails.git] / test / helpers / social_share_button_helper_test.rb
1 require "test_helper"
2
3 class SocialShareButtonHelperTest < ActionView::TestCase
4   include SocialShareButtonHelper
5
6   def setup
7     @options = {
8       :title => "Test Title",
9       :url => "https://example.com",
10       :desc => "Test Description",
11       :via => "testuser"
12     }
13   end
14
15   def test_social_share_buttons
16     result = social_share_buttons(@options)
17     assert_includes result, "email"
18     assert_includes result, "bluesky"
19     assert_includes result, "facebook"
20     assert_includes result, "linkedin"
21     assert_includes result, "mastodon"
22     assert_includes result, "telegram"
23     assert_includes result, "x"
24   end
25 end