Sha256: aa21582bdc45254146723ee8319af9c0fb806a12a0a418397b4b0ecf541ffe4b

Contents?: true

Size: 386 Bytes

Versions: 7

Compression:

Stored size: 386 Bytes

Contents

require 'test_helper'

module SocialUrl
  class GoogleTest < Minitest::Test
    def setup
      @options = {
        text: 'Hello World',
        url: 'http://example.com'
      }
    end

    def test_url
      opts = SocialUrl.normalize(@options)
      url = 'https://plus.google.com/share?url=http%3A%2F%2Fexample.com'

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
social-url-1.1.0 test/lib/social_url/google_test.rb
social-url-1.0.3 test/lib/social_url/google_test.rb
social-url-1.0.2 test/lib/social_url/google_test.rb
social-url-1.0.1 test/lib/social_url/google_test.rb
social-url-1.0.0 test/lib/social_url/google_test.rb
social-url-0.3.0 test/lib/social_url/google_test.rb
social-url-0.2.0 test/lib/social_url/google_test.rb