I am using chef-solo, is there a way to mock out a method call in my attribute file that is calling node.chef_environment? It's returning _default and I want it to return "production". Thanks!
Nope, the minitest runner is launched in the report phase, there is no way to mock previous phases calls. Think about this as an integration test hander.
Hi,
I am using chef-solo, is there a way to mock out a method call in my attribute file that is calling node.chef_environment? It's returning _default and I want it to return "production". Thanks!