[chef] Error when trying to stub ChefVault item


Chronological Thread 
  • From: Joseph Hammerman < >
  • To: Chef Users < >
  • Subject: [chef] Error when trying to stub ChefVault item
  • Date: Fri, 28 Nov 2014 19:50:21 +0000 (UTC)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.com; b=rPPCkt2fJUGy1nGAAW+e44h9j2jn33n6AEvOgMAnmFyXR2+ltQEw7R9iIqAAgg3fa5FYyJpynvYCcMD5EMjaQSKvssAfJeoJ/EAuNg4szw72TpUG53Ix4Y1xZHcQfeUJQRC9I1CxPSiZkzp7QFdwIlTZvaL2uThLs067Fd3FueJxQpk7Ma+tZouIzd37snwy09AVUYtCqZzJkF6jj7DBptL+tWOUxeSK3tXr4tdV+QUJ+3H7dgvmKoUhnvJswrvGjZ9q8E8i9cWy4SgaAfloOvMoRUUpl3h8okMDfalGfVtLm59GyyZ2lnonqUClx94TMf6jw/u8BNMgSPW3os+pYQ==;

Hi Chef Users,

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

The call to vault within the recipe looks like this:

The error I am receiving (also pasted 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? rspec is from the ChefDK Omnibus install:
bash-3.2$ /opt/chefdk/embedded/bin/rspec -v
3.1.7
Thanks,
Joe



  • [chef] Error when trying to stub ChefVault item, Joseph Hammerman, 11/28/2014

Archive powered by MHonArc 2.6.16.

§