From 665f6a5a5791a3519b7dcb3c81b1e08c66987263 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Thu, 19 Sep 2013 19:46:43 -0400 Subject: [CHEF-4561] Add :write as a valid action to the log resource --- spec/unit/resource/log_spec.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'spec/unit') 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 -- cgit v1.2.1