-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
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
(PDK-1384) Updates to be compatible with latest Cri #731
Conversation
There are still a bunch of places where we call |
This PR introduces #hash_with_defaults_including, which is similar to RSpec's built-in #hash_including, but does not require the keys of `expected` to be present in `actual` -- what matters is that for all keys in `expected`, the value in `actual` and `expected` is the same. hash = Hash.new { |hash, key| 9000 } moo(hash) This passes: expect(something) .to receive(:moo) .with(hash_with_defaults_including(stuff: 9000)) This does not pass: expect(something) .to receive(:moo) .with(hash_including(stuff: 9000))
343ed77
to
d8de456
Compare
Tweaked |
Hrmm odd error in appveyor there.
It's in the |
Yeah, I was trying to repro that in my VM yesterday, going to just re-kick the Appveyor build and see what happens.... |
Well it's happy now. 🤷♂ |
Ping @puppetlabs/pdk for review now that this is passing. |
No description provided.