I am able to reproduce the issue with the following snippet:execute 'cmd' docommand lazy { node['cmd'] }endnode.default['cmd'] = '/bin/true'The corresponding spec is:describe ‘test::lazy' dosubject doChefSpec::Runner.new.converge(described_recipe)endit { should run_execute('cmd') }endOn Oct 21, 2014, at 3:10 PM, Peter Burkholder < " target="_blank"> > wrote:Can you share a bit more of the code you have under test?On Tue, Oct 21, 2014 at 5:34 PM, Joe Nuspl < " target="_blank"> > wrote:I’m trying to write a unit test for a recipe that uses http://docs.getchef.com/resource_common.html#lazy-attribute-evaluationIt fails with:Failure/Error: runner.converge(described_recipe)NoMethodError:undefined method `lazy' for Chef::Resource::ExecuteAny ideas on how to make this work?Joe
Archive powered by MHonArc 2.6.16.