We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eg.
it "fails with super_diff" do expect([{"message" => "lol"}]).to match_array( hash_including("message" => "lol") ) end
Results in:
NoMethodError: undefined method `size' for #<RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher:0x00007fd42da5e3e0>
Commenting out require "super_diff/rspec-rails" in my spec helper fixes the issue.
require "super_diff/rspec-rails"
The text was updated successfully, but these errors were encountered:
I found a workaround: add an array instead of using varargs
expect([{"message" => "lol"}]).to match_array([ hash_including("message" => "lol") ])
Sorry, something went wrong.
Hi @mcmire
Any reasons suggested PR by @wata727 was not merged? It looks like quite a valuable fix.
Is there a rough estimate for fixing this issue?
This issue was closed via #213
Successfully merging a pull request may close this issue.
Eg.
Results in:
Commenting out
require "super_diff/rspec-rails"
in my spec helper fixes the issue.The text was updated successfully, but these errors were encountered: