Skip to content

Commit

Permalink
Request#url in Typhoeus now includes params, therefore this fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
hanshasselberg committed Feb 14, 2013
1 parent 4ce654b commit b922610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/acceptance/typhoeus/typhoeus_hydra_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

describe "when params are used" do
it "should take into account params for POST request" do
stub_request(:post, "www.example.com").with(:params => {:hello => 'world'})
stub_request(:post, "www.example.com/?hello=world").with(:params => {:hello => 'world'})
request = Typhoeus::Request.new("http://www.example.com", :method => :post, :params => {:hello => 'world'})
hydra.queue(request)
hydra.run
Expand Down

0 comments on commit b922610

Please sign in to comment.