Sha256: ac3b0ed186194c3d77347c22265388b9b932d7404353fbb1d5f8286fecb1b0b8

Contents?: true

Size: 389 Bytes

Versions: 1

Compression:

Stored size: 389 Bytes

Contents

# frozen_string_literal: true

require "test_helper"

module SocialUrl
  class FacebookTest < Minitest::Test
    def setup
      @options = { url: "http://example.com" }
    end

    def test_url
      opts = SocialUrl.normalize(@options)
      url = "https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fexample.com"

      assert_equal url, Facebook.new(opts).url
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
social-url-1.1.1 test/lib/social_url/facebook_test.rb