spec/postrank-uri_spec.rb in postrank-uri-1.0.16 vs spec/postrank-uri_spec.rb in postrank-uri-1.0.17

- old
+ new

@@ -337,9 +337,13 @@ PostRank::URI.parse('xmpp:void(0);').scheme.should == 'xmpp' end end context 'valid?' do + it 'marks incomplete URI string as invalid' do + PostRank::URI.valid?('/path/page.html').should be_false + end + it 'marks www.test.c as invalid' do PostRank::URI.valid?('http://www.test.c').should be_false end it 'marks www.test.com as valid' do