Sha256: a8c9fee93fa1c1e8011403a22a8feeefba8aa811d474de3e16f2d0657d8e4093
Contents?: true
Size: 928 Bytes
Versions: 3
Compression:
Stored size: 928 Bytes
Contents
require 'test_helper' module Workarea module Storefront class SharesHelperTest < ViewTest def test_facebook_query_string query_string = facebook_query_string('test') assert_equal('u=test', query_string) end def test_twitter_query_string query_string = twitter_query_string('foo', 'bar') assert_includes(query_string, 'text=bar') assert_includes(query_string, 'url=foo') end def test_share_query_string query_string = share_query_string('foo', 'bar', 'baz') assert_includes(query_string, 'description=bar') assert_includes(query_string, 'media=baz') assert_includes(query_string, 'url=foo') query_string = share_query_string('foo') assert_includes(query_string, 'url=foo') refute_includes(query_string, 'description') refute_includes(query_string, 'media') end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
workarea-share-1.3.1 | test/helpers/shares_helper_test.rb |
workarea-share-1.3.0 | test/helpers/shares_helper_test.rb |
workarea-share-1.2.4 | test/helpers/shares_helper_test.rb |