diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-03-01 21:54:43 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2017-03-01 21:54:43 -0800 |
commit | f706c6a4183c5d2807ead7ed1c26cf2b8cfef921 (patch) | |
tree | b7d02c5f9dca846107d93569485698e57149af89 /spec/unit | |
parent | 46d19a502fb8824fa3fccf4535fcfa226c4e9473 (diff) | |
download | chef-f706c6a4183c5d2807ead7ed1c26cf2b8cfef921.tar.gz |
support why-run by defaultlcg/default-whyrun-supported
this should fix several bugs in providers that look like they should
support whyrun but fail to declare it.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit')
-rw-r--r-- | spec/unit/provider_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/provider_spec.rb b/spec/unit/provider_spec.rb index 2bc2ae7c88..f252d3177d 100644 --- a/spec/unit/provider_spec.rb +++ b/spec/unit/provider_spec.rb @@ -1,6 +1,6 @@ # # Author:: Adam Jacob (<adam@chef.io>) -# Copyright:: Copyright 2008-2016, Chef Software Inc. +# Copyright:: Copyright 2008-2017, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -91,8 +91,8 @@ describe Chef::Provider do expect(@provider.current_resource).to eql(nil) end - it "should not support whyrun by default" do - expect(@provider.send(:whyrun_supported?)).to eql(false) + it "should support whyrun by default" do + expect(@provider.send(:whyrun_supported?)).to eql(true) end it "should do nothing for check_resource_semantics! by default" do |