features/support/env.rb
# Provides stubbed chef_context to the handler.
Provides stubbed chef_context to the handler.
Provides stubbed chef_context to the handler .
def reset_chef_run_context!
    @chef_resource_collection = []
    stubbed_run_context = OpenStruct.new(resource_collection: @chef_resource_collection)
    set_handler_variable("chef_run_context", stubbed_run_context)
  end
def reset_chef_run_context! @chef_resource_collection = [ ] stubbed_run_context = OpenStruct . new ( resource_collection : @chef_resource_collection ) set_handler_variable ( "chef_run_context" , stubbed_run_context ) end
Provides stubbed chef_context to the handler.
Provides stubbed chef_context to the handler .