summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-03-14 22:59:00 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-03-14 22:59:00 -0700
commit61c8f96347ed8824792d63babb6f336ca7a4a335 (patch)
treec33decb7aee038a350bdb9148b62b8888f5fb720 /spec/unit
parentbd82cb8df423582cc59d4f587c5fb4ba056c5206 (diff)
downloadchef-61c8f96347ed8824792d63babb6f336ca7a4a335.tar.gz
Early alloction of the Chef::RunContext
Allow for allocation of the Chef::RunContext without its arguments and use that to allocate it early. The APIs are kept backcompatible since otherwise this has a decent chance of blowing up something like chefspec. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/client_spec.rb1
-rw-r--r--spec/unit/run_context_spec.rb2
2 files changed, 1 insertions, 2 deletions
diff --git a/spec/unit/client_spec.rb b/spec/unit/client_spec.rb
index 6fb5a7df64..476647a651 100644
--- a/spec/unit/client_spec.rb
+++ b/spec/unit/client_spec.rb
@@ -102,7 +102,6 @@ shared_context "a client run" do
let(:api_client_exists?) { false }
let(:enable_fork) { false }
- let(:http_data_collector) { double("Chef::ServerAPI (data collector)") }
let(:http_cookbook_sync) { double("Chef::ServerAPI (cookbook sync)") }
let(:http_node_load) { double("Chef::ServerAPI (node)") }
let(:http_node_save) { double("Chef::ServerAPI (node save)") }
diff --git a/spec/unit/run_context_spec.rb b/spec/unit/run_context_spec.rb
index bfef3f8836..0d66b1f66d 100644
--- a/spec/unit/run_context_spec.rb
+++ b/spec/unit/run_context_spec.rb
@@ -2,7 +2,7 @@
# Author:: Adam Jacob (<adam@chef.io>)
# Author:: Tim Hinderliter (<tim@chef.io>)
# Author:: Christopher Walters (<cw@chef.io>)
-# Copyright:: Copyright 2008-2016, Chef Software Inc.
+# Copyright:: Copyright 2008-2019, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");