summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-12-01 18:21:51 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-12-13 13:31:50 -0800
commit1bd371a0d4345060545fe91fb8d5ea2e56a09788 (patch)
treebf31142666ff515f2a9b912149760c988158cff1
parent975c5f26733d8023503b6b6bfd47e5b3fc976749 (diff)
downloadchef-1bd371a0d4345060545fe91fb8d5ea2e56a09788.tar.gz
fix deprecation warning spec failure
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--spec/unit/resource/dnf_package_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/resource/dnf_package_spec.rb b/spec/unit/resource/dnf_package_spec.rb
index 1c57a7d229..f5d3a64f67 100644
--- a/spec/unit/resource/dnf_package_spec.rb
+++ b/spec/unit/resource/dnf_package_spec.rb
@@ -93,8 +93,8 @@ describe Chef::Resource::DnfPackage, "allow_downgrade" do
end
it "should allow you to specify whether allow_downgrade is true or false" do
+ Chef::Config[:treat_deprecation_warnings_as_errors] = false
expect { @resource.allow_downgrade true }.not_to raise_error
expect { @resource.allow_downgrade false }.not_to raise_error
- expect { @resource.allow_downgrade "monkey" }.to raise_error(ArgumentError)
end
end