-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compare raw query instead of parsed one
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,7 +91,7 @@ def simple_response(body, status = 200) | |
|
||
it 'merges duplicate values' do | ||
expect(HTTP::Request).to receive(:new) do |_, uri| | ||
expect(CGI.parse uri.query).to eq('a' => %w[1 2]) | ||
expect(uri.query).to eq 'a=1&a=2' | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ixti
Author
Member
|
||
end | ||
|
||
client.get('http://example.com/?a=1', :params => {:a => 2}) | ||
|
This creates an indirect dependency on hash ordering.