spec/link_spec.rb in rubyretriever-1.0.2 vs spec/link_spec.rb in rubyretriever-1.0.3

- old
+ new

@@ -33,11 +33,11 @@ @source = (<<SOURCE).strip <a href='http://www.cnet.com/products/gadgets'>gadgets</a> <a href='http://www.cnet.com/products/gadgets'>gadgets2</a> SOURCE - expect(links).to have(1).items + expect(links.size).to eq(1) end it "adds a protocol to urls missing them (www.)" do @source = (<<SOURCE).strip <a href='www.cnet.com/download.exe'>download</a> @@ -50,10 +50,10 @@ @source = (<<SOURCE).strip <a href='http://www.cnet.com/products/gadgets/'>gadgets </a> <a href='http://www.cnet.com/products/gadgets/' data-vanity-rewritten='true'></a> SOURCE - expect(links).to have(1).item + expect(links.size).to eq(1) end it "returns relative urls with full path based on hostname" do @source = (<<SOURCE).strip <a href='/test.html'>test</a> \ No newline at end of file