Permalink
Browse files

Changed spec to accept a query parameter

  • Loading branch information...
1 parent b01123d commit cb545e9e308b5a6d4fd84461de2c2992c2132ea1 @ryanatwork committed Jun 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/hacker_news_search/search_spec.rb
View
2 spec/hacker_news_search/search_spec.rb
@@ -14,7 +14,7 @@
end
it "should fetch all items matching the search criteria" do
- search = @client.search("items", {:q => "sferik"})
+ search = @client.search("items","sferik")
a_get("items/_search?q=sferik").should have_been_made
search.hits.should == 13
end

0 comments on commit cb545e9

Please sign in to comment.