Skip to content
Browse files

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

  • Loading branch information...
1 parent f5c5bf4 commit 8e2925bdbe00bcfc741693e10dccb5712e5b215a @bblimke committed
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

0 comments on commit 8e2925b

Please sign in to comment.
Something went wrong with that request. Please try again.