- From: Jimmy Huang <
>
- To:
- Subject: [chef] cannot load such file 'rvm'
- Date: Mon, 16 Mar 2015 12:37:04 -0700
Hi,
I have read and reread this thread:
and this comment on another thread specifically:
The recommendation is to put:
Kernel.stub(:require).with('rvm')
somewhere before you load your spec/recipe, but I am not sure where that would be. For now I have tried putting the two versions of the the stubbing inside the let block. Unfortunately, neither yielded good results. Thank you for your help.
Sincerely,
Jimmy
let(:chef_run) do
Kernel.stub(:require).with('rvm')
ChefSpec::ServerRunner.new.converge(described_recipe)
end
let(:chef_run) do
allow(Kernel).to receive(:require).with('rvm').and_return(true)
ChefSpec::ServerRunner.new.converge(described_recipe)
end
- [chef] cannot load such file 'rvm', Jimmy Huang, 03/16/2015
Archive powered by MHonArc 2.6.16.