ChefVault stubbing issue

7 views
Skip to first unread message

Joseph Hammerman

unread,
Nov 28, 2014, 2:47:22 PM11/28/14
to chef-t...@googlegroups.com
Hi chef-testing Google Group,

I am trying to stud Chef Vault items in my spec file thusly:


The call to vault within the recipe looks like this:


The error I am receiving (also paster on the bottom of the first link) is:

Failure/Error: allow (ChefVault::Item).to receive(:load).

     NoMethodError:

       undefined method `to' for ChefVault::Item:Class


Am I missing a syntax thing?

bash-3.2$ /opt/chefdk/embedded/bin/rspec -v

3.1.7

Thanks,

Joe

Reply all
Reply to author
Forward
0 new messages