-
Notifications
You must be signed in to change notification settings - Fork 10
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
Don't stub Chef::DataBagItem.load by default #12
Conversation
Don't stub Chef::DataBagItem.load by default
Even with this I can't make it work... get errors like
|
Can you share the recipe that is driving this? We don't stub the 'id' key of the vault item, and I've not run into a recipe that needed it before. It's a simple enough stub to add, but I'd like to understand the use case better before blindly adding it. |
I use it all over the place. Why would you skip the id? Doesn't make sense. Just stub everything in the json. I can't think of a single reason why not |
On second glance it looks like a little something was missing. I added the following to my stubs: allow(ChefVault::Item).to receive(:load).and_call_original That seems to do the trick for me. |
This fixes issue #11 and ensures that you can still stub an unencrypted data bag.