summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2017-04-20 09:40:31 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2017-04-20 09:40:31 -0700
commitd23b24b021364784ca79317c42d8f4028a9d7253 (patch)
tree8c1135a8b6c506cd7a1c1d321455577d7fe1b682 /spec/unit
parente265487be7f503119057621d6ef125667f06e39c (diff)
downloadchef-d23b24b021364784ca79317c42d8f4028a9d7253.tar.gz
add a pointer from the run_context back to the runnerlcg/runner-pointer
because surfing through Objectspace makes kittens cry Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/runner_spec.rb4
1 files changed, 4 insertions, 0 deletions
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