Permalink
Browse files

Ensured alphabetical order of body presented as a hash in error message

  • Loading branch information...
1 parent f8147d9 commit 67b9b60a538b74378d1d965e9c31fd0963705ceb @bblimke committed Jan 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/webmock/request_pattern.rb
@@ -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

0 comments on commit 67b9b60

Please sign in to comment.