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/recipe_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/recipe_spec.rb')
-rw-r--r-- | spec/unit/recipe_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/recipe_spec.rb b/spec/unit/recipe_spec.rb index 59d05298c3..86f9a2d1d7 100644 --- a/spec/unit/recipe_spec.rb +++ b/spec/unit/recipe_spec.rb @@ -412,7 +412,7 @@ describe Chef::Recipe do end it "does not copy the action from the first resource" do - expect(original_resource.action).to eq([:score]) + expect(original_resource.action).to eq(:score) expect(duplicated_resource.action).to eq(:nothing) end @@ -508,7 +508,7 @@ describe Chef::Recipe do recipe.from_file(File.join(CHEF_SPEC_DATA, "recipes", "test.rb")) res = recipe.resources(:file => "/etc/nsswitch.conf") expect(res.name).to eql("/etc/nsswitch.conf") - expect(res.action).to eql([:create]) + expect(res.action).to eql(:create) expect(res.owner).to eql("root") expect(res.group).to eql("root") expect(res.mode).to eql(0644) |