Sha256: 72477633a864652ab5da9a677f6ad003a8133a888045a3a4131d4d026149db85
Contents?: true
Size: 428 Bytes
Versions: 4
Compression:
Stored size: 428 Bytes
Contents
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) %w{ murlsh }.each { |m| require m } describe URI do it 'should have its domain set to the domain of its URI if it is a valid HTTP URI' do URI('http://foo.com/').domain.should == 'foo.com' end it 'should have its domain set nil if it is no a valid HTTP URI' do URI('foo').domain.should be_nil URI('http://foo.com.').domain.should be_nil end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
murlsh-0.9.0 | spec/uri_spec.rb |
murlsh-0.8.1 | spec/uri_spec.rb |
murlsh-0.8.0 | spec/uri_spec.rb |
murlsh-0.7.0 | spec/uri_spec.rb |