diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-02-09 14:48:16 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-02-09 14:48:16 -0800 |
commit | 6c45ef91d4e5bea527da8bb87451069c9c21599f (patch) | |
tree | e49c910d8816bc442d02c910c8682535eb7f71c8 /spec | |
parent | 11140c2cbd6f675c1bc0c3f5697f23d6404886ba (diff) | |
download | chef-6c45ef91d4e5bea527da8bb87451069c9c21599f.tar.gz |
patch chef_gem to use Chef::Log.deprecationlcg/chef-gem-config-option
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/resource/chef_gem_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/unit/resource/chef_gem_spec.rb b/spec/unit/resource/chef_gem_spec.rb index 18278ba336..7352a8f5fe 100644 --- a/spec/unit/resource/chef_gem_spec.rb +++ b/spec/unit/resource/chef_gem_spec.rb @@ -76,20 +76,20 @@ describe Chef::Resource::ChefGem, "gem_binary" do it "runs the install at compile-time by default", :chef_lt_13_only do expect(resource).to receive(:run_action).with(:install) - expect(Chef::Log).to receive(:warn).at_least(:once) + expect(Chef::Log).to receive(:deprecation).at_least(:once) recipe.chef_gem "foo" end # the default behavior will change in Chef-13 it "does not runs the install at compile-time by default", :chef_gte_13_only do expect(resource).not_to receive(:run_action).with(:install) - expect(Chef::Log).not_to receive(:warn) + expect(Chef::Log).not_to receive(:deprecation) recipe.chef_gem "foo" end it "compile_time true installs at compile-time" do expect(resource).to receive(:run_action).with(:install) - expect(Chef::Log).not_to receive(:warn) + expect(Chef::Log).not_to receive(:deprecation) recipe.chef_gem "foo" do compile_time true end @@ -97,7 +97,7 @@ describe Chef::Resource::ChefGem, "gem_binary" do it "compile_time false does not install at compile-time" do expect(resource).not_to receive(:run_action).with(:install) - expect(Chef::Log).not_to receive(:warn) + expect(Chef::Log).not_to receive(:deprecation) recipe.chef_gem "foo" do compile_time false end @@ -107,7 +107,7 @@ describe Chef::Resource::ChefGem, "gem_binary" do let(:chef_gem_compile_time) { true } before do - expect(Chef::Log).not_to receive(:warn) + expect(Chef::Log).not_to receive(:deprecation) end it "by default installs at compile-time" do @@ -135,7 +135,7 @@ describe Chef::Resource::ChefGem, "gem_binary" do let(:chef_gem_compile_time) { false } before do - expect(Chef::Log).not_to receive(:warn) + expect(Chef::Log).not_to receive(:deprecation) end it "by default does not install at compile-time" do |