test/crags/searcher_test.rb in gotascii-crags-1.1.0 vs test/crags/searcher_test.rb in gotascii-crags-1.1.1

- old
+ new

@@ -44,11 +44,11 @@ stubs(:search_location) search("") end specify "search location should fetch doc for search url" do - expects(:fetch_doc).with("urlsearch/sss?query=keyword&format=rss") + expects(:fetch_doc).with("http://url/search/sss?query=keyword&format=rss") stubs(:items).returns([]) search_location("keyword", "url") end specify "search location should create link with each item in doc items and return list" do @@ -96,16 +96,16 @@ stubs(:fetch_doc).returns(doc) categories.should == {'inner_html' => 'href', 'inner_html' => 'href'} end specify "search location should accept a category parameter" do - expects(:fetch_doc).with("locsearch/scram?query=keyword&format=rss") + expects(:fetch_doc).with("http://loc/search/scram?query=keyword&format=rss") stubs(:items).returns([]) search_location('keyword', 'loc', 'scram') end specify "search location default category is sss" do - expects(:fetch_doc).with("locsearch/sss?query=keyword&format=rss") + expects(:fetch_doc).with("http://loc/search/sss?query=keyword&format=rss") stubs(:items).returns([]) search_location('keyword', 'loc') end specify "search should pass parameter to search location" do