Sha256: d581c7fc321a9f987413c276f7d8efd81660e17048cc2a1569783350dff5c098
Contents?: true
Size: 564 Bytes
Versions: 13
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 == "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 == test_uri end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems