From d23b24b021364784ca79317c42d8f4028a9d7253 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Thu, 20 Apr 2017 09:40:31 -0700 Subject: add a pointer from the run_context back to the runner because surfing through Objectspace makes kittens cry Signed-off-by: Lamont Granquist --- spec/unit/runner_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec/unit') diff --git a/spec/unit/runner_spec.rb b/spec/unit/runner_spec.rb index eeb471608e..db52862a9c 100644 --- a/spec/unit/runner_spec.rb +++ b/spec/unit/runner_spec.rb @@ -98,6 +98,10 @@ describe Chef::Runner do run_context.resource_collection << first_resource end + it "runner sets up a pointer back to itself in the run_context" do + expect(runner).to eql(run_context.runner) + end + context "when we are doing dynamic provider resolution" do it "should pass each resource in the collection to a provider" do -- cgit v1.2.1