summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-01-29 16:39:32 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-01-29 16:39:32 -0800
commit344efb1b307a3a7ba977a15a5f1b29c4d4a6c05d (patch)
tree4e5f3fd274a035bcb8a290f266f5409b171fafb9 /spec/unit
parent9d0094a52cde6f01be909444e786bfa9f3326d6d (diff)
downloadchef-344efb1b307a3a7ba977a15a5f1b29c4d4a6c05d.tar.gz
need action for define_resource_requirements
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/provider/group/dscl_spec.rb1
-rw-r--r--spec/unit/provider/group/gpasswd_spec.rb1
-rw-r--r--spec/unit/provider/group/pw_spec.rb1
3 files changed, 3 insertions, 0 deletions
diff --git a/spec/unit/provider/group/dscl_spec.rb b/spec/unit/provider/group/dscl_spec.rb
index e29e24f9b2..5a02ee8dfb 100644
--- a/spec/unit/provider/group/dscl_spec.rb
+++ b/spec/unit/provider/group/dscl_spec.rb
@@ -236,6 +236,7 @@ describe Chef::Provider::Group::Dscl do
describe "when loading the current system state" do
before (:each) do
+ @provider.action = :create
@provider.load_current_resource
@provider.define_resource_requirements
end
diff --git a/spec/unit/provider/group/gpasswd_spec.rb b/spec/unit/provider/group/gpasswd_spec.rb
index 7d71ecdb41..5bd7fdc569 100644
--- a/spec/unit/provider/group/gpasswd_spec.rb
+++ b/spec/unit/provider/group/gpasswd_spec.rb
@@ -32,6 +32,7 @@ describe Chef::Provider::Group::Gpasswd, "modify_group_members" do
describe "when determining the current group state" do
before (:each) do
+ @provider.action = :create
@provider.load_current_resource
@provider.define_resource_requirements
end
diff --git a/spec/unit/provider/group/pw_spec.rb b/spec/unit/provider/group/pw_spec.rb
index e622edbef3..af64a21fde 100644
--- a/spec/unit/provider/group/pw_spec.rb
+++ b/spec/unit/provider/group/pw_spec.rb
@@ -121,6 +121,7 @@ describe Chef::Provider::Group::Pw do
describe"load_current_resource" do
before (:each) do
+ @provider.action = :create
@provider.load_current_resource
@provider.define_resource_requirements
end