Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Request pattern always prints body hash sorted in the same order.

  • Loading branch information...
commit 8e2925bdbe00bcfc741693e10dccb5712e5b215a 1 parent f5c5bf4
@bblimke authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/webmock/request_pattern.rb
View
3  lib/webmock/request_pattern.rb
@@ -166,6 +166,9 @@ def matches?(body, content_type = "")
end
def to_s
+ if (@pattern).is_a?(Hash)
+ @pattern = Hash[@pattern.sort.reverse]
+ end
@pattern.inspect
end
Please sign in to comment.
Something went wrong with that request. Please try again.