summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-02-09 15:57:14 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2015-02-09 15:57:14 -0800
commitf9ca811feb8560a9b8e054030d6cf5ea62d8cfda (patch)
tree451e06d1b969e8e66e7581b6f0bb7e1885f22b6d
parent6c45ef91d4e5bea527da8bb87451069c9c21599f (diff)
downloadchef-f9ca811feb8560a9b8e054030d6cf5ea62d8cfda.tar.gz
fix a busted deprecation spec
-rw-r--r--spec/unit/deprecation_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/unit/deprecation_spec.rb b/spec/unit/deprecation_spec.rb
index f0f01db567..f824cb7c76 100644
--- a/spec/unit/deprecation_spec.rb
+++ b/spec/unit/deprecation_spec.rb
@@ -92,8 +92,7 @@ describe Chef::Deprecation do
# rspec should set this
expect(Chef::Config[:treat_deprecation_warnings_as_errors]).to be true
test_instance = TestClass.new
- test_instance.deprecated_method(10)
- expect { test_instance.get_value }.to raise_error(Chef::Exceptions::DeprecatedFeatureError)
+ expect { test_instance.deprecated_method(10) }.to raise_error(Chef::Exceptions::DeprecatedFeatureError)
end
end