Skip to content

Commit

Permalink
Ensured alphabetical order of body presented as a hash in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
bblimke committed Jan 22, 2012
1 parent f8147d9 commit 67b9b60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/webmock/request_pattern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def empty_string?(string)
end

def normalize_hash(hash)
WebMock::Util::HashKeysStringifier.stringify_keys!(hash)
Hash[WebMock::Util::HashKeysStringifier.stringify_keys!(hash).sort]
end

end
Expand Down

0 comments on commit 67b9b60

Please sign in to comment.