diff options
author | John Keiser <john@johnkeiser.com> | 2015-05-27 16:06:53 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-06-01 13:21:21 -0700 |
commit | 236570dc9605ac312b44508b1c3a6a0e7c19b4dc (patch) | |
tree | 966a79db0d03021e2ed0e5a9ba2bf5073fff153c /spec/unit/lwrp_spec.rb | |
parent | 02e8874637dd661b5aaf656a5c2d6fbbb5795619 (diff) | |
download | chef-236570dc9605ac312b44508b1c3a6a0e7c19b4dc.tar.gz |
Add default_action and allowed_actions to Resource class, remove from 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 8cac70e800..f83678308a 100644 --- a/spec/unit/lwrp_spec.rb +++ b/spec/unit/lwrp_spec.rb @@ -146,7 +146,7 @@ describe "LWRP" do it "Should load the old content, and not the new" do resource = Chef::Resource.resource_for_node(:lwrp_foo, Chef::Node.new) expect(resource).to eq @original_resource - expect(resource.default_action).to eq([:pass_buck]) + expect(resource.default_action).to eq(:pass_buck) expect(Chef.method_defined?(:method_created_by_override_lwrp_foo)).to be_falsey end end @@ -185,7 +185,7 @@ describe "LWRP" do end it "should set the specified action as the default action" do - expect(get_lwrp(:lwrp_foo).new("blah").action).to eq([:pass_buck]) + expect(get_lwrp(:lwrp_foo).new("blah").action).to eq(:pass_buck) end it "should create a method for each attribute" do @@ -281,7 +281,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 @@ -298,7 +298,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 |