bblimke/webmock — Issue #155: Test failures for webmock 1.7.10 with ruby 1.8.7
Author: graaff
Created: 2012-01-29 08:49:29+00:00
State: open

I'm getting several test failures with ruby 1.8.7 (2011-12-28 patchlevel 357) [x86_64-linux]. I'm also getting this for Net:HTTP and Patron.

```
2) HTTPClient with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should fail if request is executed with url encoded body not matching hash
Failure/Error: lambda {
expected RSpec::Expectations::ExpectationNotMetError with message matching /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/, got #"five", "a"=>"1", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times

The following requests were made:

POST http://www.example.com/ with body 'c[d][]=f&a=1&c[d][]=e' with headers {'Content-Type'=>'application/x-www-form-urlencoded'} was made 1 time

============================================================>
# ./spec/acceptance/shared/request_expectations.rb:230
```