Sha256: 038d34c6621f72d295007edb7751aa20ca7102276bc89113ca8eca54712c66de
Contents?: true
Size: 409 Bytes
Versions: 2
Compression:
Stored size: 409 Bytes
Contents
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'murlsh' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
murlsh-0.6.1 | spec/uri_spec.rb |
murlsh-0.6.0 | spec/uri_spec.rb |