Sha256: 11cb84f5b59fab28c1312ac90ae38bb2882e88c3966bbde04b167251112da1ef

Contents?: true

Size: 462 Bytes

Versions: 4

Compression:

Stored size: 462 Bytes

Contents

require 'test_helper'

module RefererParser
  class ParserTest < Workarea::TestCase
    def test_parse_android_app_referrers
      referrers = [
        'android-app://com.linkedin.android',
        'android-app://org.telegram.plus',
        'android-app://com.twitter.android'
      ]

      referrers.each do |uri|
        referrer = Parser.new.parse(uri)

        refute(referrer[:known])
        assert_equal(uri, referrer[:uri])
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
workarea-core-3.4.45 test/lib/workarea/ext/referer_parser/parser_test.rb
workarea-core-3.4.44 test/lib/workarea/ext/referer_parser/parser_test.rb
workarea-core-3.4.43 test/lib/workarea/ext/referer_parser/parser_test.rb
workarea-core-3.4.42 test/lib/workarea/ext/referer_parser/parser_test.rb