diff options
| author | John Keiser <john@johnkeiser.com> | 2015-06-16 11:14:20 -0700 |
|---|---|---|
| committer | John Keiser <john@johnkeiser.com> | 2015-06-16 11:14:20 -0700 |
| commit | bc5227d5ac004800a30b7b1353fa7461b132f2cb (patch) | |
| tree | 3b3b7ba372639dbdf744407289464957d49a95fc /spec/unit/lwrp_spec.rb | |
| parent | b08c9010c387c762a6fa82fa9ae8c2a5e5c8594d (diff) | |
| download | chef-bc5227d5ac004800a30b7b1353fa7461b132f2cb.tar.gz | |
Ensure :nothing is in the list of allowed actions for an LWRP
Diffstat (limited to 'spec/unit/lwrp_spec.rb')
| -rw-r--r-- | spec/unit/lwrp_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/lwrp_spec.rb b/spec/unit/lwrp_spec.rb index 34c6f6f1c5..83105ac233 100644 --- a/spec/unit/lwrp_spec.rb +++ b/spec/unit/lwrp_spec.rb @@ -409,13 +409,13 @@ describe "LWRP" do end end - context "when the child does not defined the methods" do + context "when the child does not define the methods" do let(:child) do Class.new(parent) end it "delegates #actions to the parent" do - expect(child.actions).to eq([:eat, :sleep]) + expect(child.actions).to eq([:nothing, :eat, :sleep]) end it "delegates #default_action to the parent" do @@ -432,7 +432,7 @@ describe "LWRP" do end it "does not delegate #actions to the parent" do - expect(child.actions).to eq([:dont_eat, :dont_sleep]) + expect(child.actions).to eq([:nothing, :dont_eat, :dont_sleep]) end it "does not delegate #default_action to the parent" do @@ -457,7 +457,7 @@ describe "LWRP" do it "amends actions when they are already defined" do raise_if_deprecated! - expect(child.actions).to eq([:eat, :sleep, :drink]) + expect(child.actions).to eq([:nothing, :eat, :sleep, :drink]) end end end |
