Sha256: 94fd81cc4e1e272fe6339e07426de852a808cd118a828e85199b31ce70af9339
Contents?: true
Size: 441 Bytes
Versions: 15
Compression:
Stored size: 441 Bytes
Contents
require 'spec_helper' describe SapeLink, :type => :model do before do SapeLink.delete_all end context '#host' do it 'should return host without path' do link = SapeLink.create( page: '/test', anchor: 'You must see', url: 'http://kremlin.ru/rss', host: 'kremlin.ru', raw_link: '', link_type: "simple" ) expect(link.host).to eq('kremlin.ru') end end end
Version data entries
15 entries across 15 versions & 1 rubygems