summaryrefslogtreecommitdiff
path: root/spec/unit/lwrp_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/lwrp_spec.rb')
-rw-r--r--spec/unit/lwrp_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/unit/lwrp_spec.rb b/spec/unit/lwrp_spec.rb
index 9a775f2dff..960aff3c36 100644
--- a/spec/unit/lwrp_spec.rb
+++ b/spec/unit/lwrp_spec.rb
@@ -180,6 +180,19 @@ describe "LWRP" do
end
end
+ describe "when #default_action is an array" do
+ let(:lwrp) do
+ Class.new(Chef::Resource::LWRPBase) do
+ actions :eat, :sleep
+ default_action [:eat, :sleep]
+ end
+ end
+
+ it "returns the array of default actions" do
+ expect(lwrp.default_action).to eq([:eat, :sleep])
+ end
+ end
+
describe "when inheriting from LWRPBase" do
let(:parent) do
Class.new(Chef::Resource::LWRPBase) do