You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it'does not use matcher descriptions in the `received:` description'dodbl=doubleexpect(dbl).toreceive(:foo).with(anything,hash_including(bar: anything))dbl.foo(1,bar: 2)dbl.foo(1,bar: 3)end
Fails with:
Failure/Error: expect(dbl).to receive(:foo).with(anything, hash_including(bar: anything))
(Double).foo(anything, hash_including(:bar=>"anything"))
expected: 1 time with arguments: (anything, hash_including(:bar=>"anything"))
received: 2 times with arguments: (#<RSpec::Mocks::ArgumentMatchers::AnyArgMatcher:0x007faefc2fb7c0>, #<RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher:0x007faefebf62d8 @expected={:bar=>#<RSpec::Mocks::ArgumentMatchers::AnyArgMatcher:0x007faefc2fb7c0>}>)
Notice the inspect output of the matchers is used for received but the description is properly used for expected. It should be used for both.
The text was updated successfully, but these errors were encountered:
Fails with:
Notice the inspect output of the matchers is used for
received
but the description is properly used forexpected
. It should be used for both.The text was updated successfully, but these errors were encountered: