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:20:52 +0000 |
commit | fd635b939f477944f1a4ce2b475c66228cd401a5 (patch) | |
tree | accf0113ecc04517fdb8df9f176dd795ef767952 /spec | |
parent | 7a5f81001ce4f53a96062d2202307516f4c0948f (diff) | |
download | chef-fd635b939f477944f1a4ce2b475c66228cd401a5.tar.gz |
Remove all 11 era deprecationstm/reremove_11_deprecations
Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'spec')
-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 |