Sha256: 1e0a054e0b35427182dd85417c6722cac2879d84406d33c387f8cafc2aece800
Contents?: true
Size: 564 Bytes
Versions: 2
Compression:
Stored size: 564 Bytes
Contents
require 'spec_helper' module Landable module Traffic describe Referer do let(:referer) { Landable::Traffic::Referer.new(domain: 'www.something.com', path: '/mypath') } describe '#url' do it 'should return the entire url as a string' do referer.url.should eq 'http://www.something.com/mypath' end end describe '#uri' do it 'should return the URI object' do test_uri = URI('http://www.something.com/mypath') referer.uri.should eq test_uri end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
landable-1.14.0 | spec/models/landable/traffic/referer_spec.rb |
landable-1.13.2 | spec/models/landable/traffic/referer_spec.rb |