diff options
| -rw-r--r-- | lib/chef/resource/lwrp_base.rb | 2 | ||||
| -rw-r--r-- | spec/unit/lwrp_spec.rb | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/resource/lwrp_base.rb b/lib/chef/resource/lwrp_base.rb index ce72e98028..0e0f11f43d 100644 --- a/lib/chef/resource/lwrp_base.rb +++ b/lib/chef/resource/lwrp_base.rb @@ -89,7 +89,7 @@ class Chef else action = action_name.to_sym @actions.push(action) unless @actions.include?(action) - @default_action = action + @default_action = [action] end end diff --git a/spec/unit/lwrp_spec.rb b/spec/unit/lwrp_spec.rb index ec39174da6..6313b84fab 100644 --- a/spec/unit/lwrp_spec.rb +++ b/spec/unit/lwrp_spec.rb @@ -131,7 +131,7 @@ describe "LWRP" do end it "should set the specified action as the default action" do - expect(Chef::Resource::LwrpFoo.new("blah").action).to eq(:pass_buck) + expect(Chef::Resource::LwrpFoo.new("blah").action).to eq([:pass_buck]) end it "should create a method for each attribute" do @@ -235,7 +235,7 @@ describe "LWRP" do end it "delegates #default_action to the parent" do - expect(child.default_action).to eq(:eat) + expect(child.default_action).to eq([:eat]) end end @@ -252,7 +252,7 @@ describe "LWRP" do end it "does not delegate #default_action to the parent" do - expect(child.default_action).to eq(:dont_eat) + expect(child.default_action).to eq([:dont_eat]) end end |
