Sha256: 4b268604308e1aaeb615c6ef27aefc5ceeabb2657fd8374f576a90866d8ef64d
Contents?: true
Size: 452 Bytes
Versions: 3
Compression:
Stored size: 452 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe UseragentParser::ReferrerParser do YAML.load_file(File.expand_path(File.dirname(__FILE__)) + "/../fixtures/test_referrers.yaml")['test_cases'].each do |testcase| it "should correctly parse the referrer string '#{testcase['referrer_string']}'" do result = UseragentParser.parse_referrer(testcase['referrer_string']) result['family'].should == testcase['family'] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
useragent_parser-0.2.2 | spec/parsers/referrer_parser_spec.rb |
useragent_parser-0.2.1 | spec/parsers/referrer_parser_spec.rb |
useragent_parser-0.2.0 | spec/parsers/referrer_parser_spec.rb |