diff options
author | Thom May <thom@chef.io> | 2017-03-08 12:13:59 +0000 |
---|---|---|
committer | Thom May <thom@chef.io> | 2017-03-08 12:13:59 +0000 |
commit | f312ab8b2f46f6211fc0b732890c69e4dae46c77 (patch) | |
tree | accf0113ecc04517fdb8df9f176dd795ef767952 /spec/unit/deprecation_spec.rb | |
parent | 33a2b809ba7dd22ff1d269fcd8bdfc5b78827a0c (diff) | |
download | chef-f312ab8b2f46f6211fc0b732890c69e4dae46c77.tar.gz |
Remove all 11 era deprecations
Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'spec/unit/deprecation_spec.rb')
-rw-r--r-- | spec/unit/deprecation_spec.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/unit/deprecation_spec.rb b/spec/unit/deprecation_spec.rb index 41c1724e5b..6e2bcc32fd 100644 --- a/spec/unit/deprecation_spec.rb +++ b/spec/unit/deprecation_spec.rb @@ -45,20 +45,6 @@ describe Chef::Deprecation do add_deprecation_warnings_for(DeprecatedMethods.instance_methods) end - method_snapshot_file = File.join(CHEF_SPEC_DATA, "file-providers-method-snapshot-chef-11-4.json") - method_snapshot = Chef::JSONCompat.parse(File.open(method_snapshot_file).read()) - - method_snapshot.each do |class_name, old_methods| - class_object = class_from_string(class_name) - current_methods = class_object.public_instance_methods.map(&:to_sym) - - it "defines all methods on #{class_object} that were available in 11.0" do - old_methods.each do |old_method| - expect(current_methods).to include(old_method.to_sym) - end - end - end - context "when Chef::Config[:treat_deprecation_warnings_as_errors] is off" do before do Chef::Config[:treat_deprecation_warnings_as_errors] = false |