test/crags/searcher_test.rb in gotascii-crags-1.0.2 vs test/crags/searcher_test.rb in gotascii-crags-1.1.0
- old
+ new
@@ -19,10 +19,10 @@
end
specify "locations should return array of urls using a location link's href" do
links = []
2.times do |i|
- links << mock {|m| m.expects(:[]).with("href").returns("url#{i}") }
+ links << mock {|m| m.expects(:[]).with("href").returns("http://url#{i}/") }
end
stubs(:location_links).returns(links)
locations.should == ["url0", "url1"]
end