summaryrefslogtreecommitdiff
path: root/spec/unit/node_map_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2017-03-20 19:53:30 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2017-03-20 19:53:30 -0700
commit6fa5b322372ebb284ac9dc08ea2b0952f56262c3 (patch)
tree640a5280890d050a3724564be9b38a5d6a9d96db /spec/unit/node_map_spec.rb
parent422d5720de5401fac3e52f50d63507f11765e8fe (diff)
downloadchef-6fa5b322372ebb284ac9dc08ea2b0952f56262c3.tar.gz
Chef-13: remove node_map back-compat
removes old Chef-10 era APIs that were not widely used. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit/node_map_spec.rb')
-rw-r--r--spec/unit/node_map_spec.rb24
1 files changed, 1 insertions, 23 deletions
diff --git a/spec/unit/node_map_spec.rb b/spec/unit/node_map_spec.rb
index 0480a721af..822f689eab 100644
--- a/spec/unit/node_map_spec.rb
+++ b/spec/unit/node_map_spec.rb
@@ -1,6 +1,6 @@
#
# Author:: Lamont Granquist (<lamont@chef.io>)
-# Copyright:: Copyright 2014-2016, Chef Software, Inc.
+# Copyright:: Copyright 2014-2017, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -145,26 +145,4 @@ describe Chef::NodeMap do
end
end
- describe "resource back-compat testing" do
- before :each do
- Chef::Config[:treat_deprecation_warnings_as_errors] = false
- end
-
- it "should handle :on_platforms => :all" do
- node_map.set(:chef_gem, :foo, :on_platforms => :all)
- allow(node).to receive(:[]).with(:platform).and_return("windows")
- expect(node_map.get(node, :chef_gem)).to eql(:foo)
- end
- it "should handle :on_platforms => [ 'windows' ]" do
- node_map.set(:dsc_script, :foo, :on_platforms => [ "windows" ])
- allow(node).to receive(:[]).with(:platform).and_return("windows")
- expect(node_map.get(node, :dsc_script)).to eql(:foo)
- end
- it "should handle :on_platform => :all" do
- node_map.set(:link, :foo, :on_platform => :all)
- allow(node).to receive(:[]).with(:platform).and_return("windows")
- expect(node_map.get(node, :link)).to eql(:foo)
- end
- end
-
end