test/crags/searcher_test.rb in gotascii-crags-1.4.6 vs test/crags/searcher_test.rb in gotascii-crags-1.4.9

- old
+ new

@@ -12,9 +12,14 @@ should "strip_http should remove http:// and trailing /" do url = "http://omg/" strip_http(url).should == "omg" end + should "strip_http should remove http:// when there is no trailing slash" do + url = "http://omg" + strip_http(url).should == "omg" + end + should "location doc should fetch doc at location url" do expects(:fetch_doc).with("http://geo.craigslist.org/iso/us").returns("doc") location_doc('us').should == "doc" end \ No newline at end of file