summaryrefslogtreecommitdiff
path: root/spec/unit/lwrp_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-01-29 18:42:40 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-01-29 18:42:40 -0800
commite42e6fe2d0c971882451d27c986b9930de7d2ffe (patch)
treec52bf04ecf3d870298a05a30dfe05d2d3c8335d3 /spec/unit/lwrp_spec.rb
parent647d75df3caa7172754d9dfc2f9fe767aeb91857 (diff)
downloadchef-e42e6fe2d0c971882451d27c986b9930de7d2ffe.tar.gz
remove some more deprecation warnings
Diffstat (limited to 'spec/unit/lwrp_spec.rb')
-rw-r--r--spec/unit/lwrp_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/lwrp_spec.rb b/spec/unit/lwrp_spec.rb
index 9e56b9fe1c..0e0ea5dbb7 100644
--- a/spec/unit/lwrp_spec.rb
+++ b/spec/unit/lwrp_spec.rb
@@ -179,7 +179,7 @@ describe "LWRP" do
end
it "should create a method for each attribute" do
- new_resource = double("new resource", :null_object=>true)
+ new_resource = double("new resource").as_null_object
Chef::Provider::LwrpBuckPasser.new(nil, new_resource).methods.map{|m|m.to_sym}.should include(:action_pass_buck)
Chef::Provider::LwrpThumbTwiddler.new(nil, new_resource).methods.map{|m|m.to_sym}.should include(:action_twiddle_thumbs)
end