{"action":"opened","issue":{"url":"https://api.github.com/repos/opscode-cookbooks/chef-vault/issues/29","labels_url":"https://api.github.com/repos/opscode-cookbooks/chef-vault/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/opscode-cookbooks/chef-vault/issues/29/comments","events_url":"https://api.github.com/repos/opscode-cookbooks/chef-vault/issues/29/events","html_url":"https://github.com/opscode-cookbooks/chef-vault/issues/29","id":73172052,"number":29,"title":"ChefSpec mock not working after switching to chef-vault cookbook","user":{"login":"dgoradia-atlas","id":9560862,"avatar_url":"https://avatars.githubusercontent.com/u/9560862?v=3","gravatar_id":"","url":"https://api.github.com/users/dgoradia-atlas","html_url":"https://github.com/dgoradia-atlas","followers_url":"https://api.github.com/users/dgoradia-atlas/followers","following_url":"https://api.github.com/users/dgoradia-atlas/following{/other_user}","gists_url":"https://api.github.com/users/dgoradia-atlas/gists{/gist_id}","starred_url":"https://api.github.com/users/dgoradia-atlas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgoradia-atlas/subscriptions","organizations_url":"https://api.github.com/users/dgoradia-atlas/orgs","repos_url":"https://api.github.com/users/dgoradia-atlas/repos","events_url":"https://api.github.com/users/dgoradia-atlas/events{/privacy}","received_events_url":"https://api.github.com/users/dgoradia-atlas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-05T01:15:13Z","updated_at":"2015-05-05T01:15:13Z","closed_at":null,"body":"I was using the chef-vault gem prior but after switching to the chef-vault cookbook I changed my code to\r\n\r\n    chef_vault_item('encrypted', 'item')\r\n\r\nfrom \r\n\r\n    ChefVault::Item.load('encrypted', 'item')\r\n\r\nIn my spec file I have:\r\n\r\n    allow(ChefVault::Item).to receive(:load).with('encrypted', 'item').and_return({..})\r\n\r\nThis was working fine with `ChefVault::Item.load` but no longer works with `chef_vault_item`. Is there another was I'm supposed to stub the data bag?\r\n"}}