Skip to content

Commit

Permalink
Fix query merge specs.
Browse files Browse the repository at this point in the history
Makes it play well with Ruby `1.8.7`.
Based on @sferik suggestion: http://git.io/-_WPkQ
  • Loading branch information
ixti committed Apr 16, 2014
1 parent 522d3ed commit aabd249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/http/client_spec.rb
Expand Up @@ -91,7 +91,7 @@ def simple_response(body, status = 200)

it 'merges duplicate values' do
expect(HTTP::Request).to receive(:new) do |_, uri|
expect(uri.query).to eq 'a=1&a=2'
expect(uri.query).to match(/^(a=1&a=2|a=2&a=1)$/)
end

client.get('http://example.com/?a=1', :params => {:a => 2})
Expand Down

0 comments on commit aabd249

Please sign in to comment.