Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Disabled assertion which depends on Hash#inspect result and is nondet…

…erministic in Ruby 1.8.7-p357
  • Loading branch information...
commit 3600a6aadf37bc6a687452085a5c63bbc86d71a3 1 parent 8e2925b
@bblimke authored
View
3  lib/webmock/request_pattern.rb
@@ -166,9 +166,6 @@ def matches?(body, content_type = "")
end
def to_s
- if (@pattern).is_a?(Hash)
- @pattern = Hash[@pattern.sort.reverse]
- end
@pattern.inspect
end
View
2  spec/acceptance/shared/request_expectations.rb
@@ -209,7 +209,7 @@
describe "when expected reqest body is declared as a hash" do
let(:body_hash) { {:a => '1', :b => 'five', 'c' => {'d' => ['e', 'f']}} }
- let(:fail_message) {%r(The request POST http://www.example.com/ with body \{"a"=>"1", "b"=>"five", "c"=>\{"d"=>\["e", "f"\]\}\} was expected to execute 1 time but it executed 0 times)}
+ let(:fail_message) {%r(The request POST http://www.example.com/ with body .* was expected to execute 1 time but it executed 0 times)}
describe "when request is made with url encoded body matching hash" do
it "should satisfy expectation" do
Please sign in to comment.
Something went wrong with that request. Please try again.