When learning chefspec, I found the code below:
describe 'example::default' do
let(:chef_run) do
ChefSpec::SoloRunner.new do |node|
node.set['cookbook']['attribute'] = 'hello'
end.converge(described_recipe)
end
end
end calls the method converges , I'm a little new to ruby and chefspec, and I have a lot of time on googled and did not get an answer, can anyone help explain the syntax?
source
share