diff options
author | Seth Vargo <sethvargo@gmail.com> | 2013-09-19 19:46:43 -0400 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-10-04 09:52:09 -0700 |
commit | 665f6a5a5791a3519b7dcb3c81b1e08c66987263 (patch) | |
tree | a6adbccae89905dc4773381f5f5ecaf5de78ce27 /spec/unit/resource/log_spec.rb | |
parent | 9d6361d69557b929d73afd048aae21f3fc3e6bd8 (diff) | |
download | chef-665f6a5a5791a3519b7dcb3c81b1e08c66987263.tar.gz |
[CHEF-4561] Add :write as a valid action to the log resource
Diffstat (limited to 'spec/unit/resource/log_spec.rb')
-rw-r--r-- | spec/unit/resource/log_spec.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/spec/unit/resource/log_spec.rb b/spec/unit/resource/log_spec.rb index 4e439f5c5f..c0201e57f3 100644 --- a/spec/unit/resource/log_spec.rb +++ b/spec/unit/resource/log_spec.rb @@ -27,9 +27,13 @@ describe Chef::Resource::Log do end it "should create a new Chef::Resource::Log" do - @resource.should be_a_kind_of(Chef::Resource) - @resource.should be_a_kind_of(Chef::Resource::Log) - end + @resource.should be_a_kind_of(Chef::Resource) + @resource.should be_a_kind_of(Chef::Resource::Log) + end + + it "supports the :write actions" do + @resource.allowed_actions.should include(:write) + end it "should have a name of log" do @resource.resource_name.should == :log |