chef-boneyard / minitest-chef-handler

Run minitest suites after your Chef recipes to check the status of your system.
Other
163 stars 44 forks source link

mocking #5

Closed jperry closed 12 years ago

jperry commented 12 years ago

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!

calavera commented 12 years ago

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.

jperry commented 12 years ago

Thanks!