It gives these warnings (from what I understood after some searches these warnings only occur in Ruby 2.0)
warning: wrong element type Hash at 0 (expected array)
warning: ignoring wrong elements is deprecated, remove them explicitly
warning: this causes ArgumentError in the next release
The problem is that this method fails in his job:
ie -> if you do define a stub like this:
with(:body => WebMock::API.hash_including(:code => "test")).
the stub actually responds no matter what the value of :code is (it theory it should only respond when :code == 'test').
Can you please provide a failing code sample?
I fixed it. I'll submit a pull request tomorrow morning with a better explanation.
@steookk, I'm running into the same issue. What did you do to fix it?
Sorry for the late reply. Here is a better explanation: