summaryrefslogtreecommitdiff
path: root/spec/unit/provider/group
diff options
context:
space:
mode:
authorThiago Oliveira <thiagoo@yahoo-inc.com>2014-10-17 14:28:52 -0700
committerThiago Oliveira <thiagoo@yahoo-inc.com>2014-10-17 14:28:52 -0700
commit8be7f51256ca5117d4fcb4fb1fab6233c84e0ddf (patch)
tree2cab112f342df7f4c08aa1725bdfee29f57b79e2 /spec/unit/provider/group
parent901e8eff95c953b91f597e4d83932d5b8803d31a (diff)
downloadchef-8be7f51256ca5117d4fcb4fb1fab6233c84e0ddf.tar.gz
use group_name when checking if the group exists on mac osx with dscl
Diffstat (limited to 'spec/unit/provider/group')
-rw-r--r--spec/unit/provider/group/dscl_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/unit/provider/group/dscl_spec.rb b/spec/unit/provider/group/dscl_spec.rb
index 8848a01bf2..f2b602ee97 100644
--- a/spec/unit/provider/group/dscl_spec.rb
+++ b/spec/unit/provider/group/dscl_spec.rb
@@ -252,7 +252,7 @@ describe Chef::Provider::Group::Dscl do
lambda { @provider.process_resource_requirements }.should_not raise_error
end
end
-
+
describe "when creating the group" do
it "creates the group, password field, gid, and sets group membership" do
@provider.should_receive(:set_gid).and_return(true)
@@ -301,7 +301,8 @@ describe 'Test DSCL loading' do
@node = Chef::Node.new
@events = Chef::EventDispatch::Dispatcher.new
@run_context = Chef::RunContext.new(@node, {}, @events)
- @new_resource = Chef::Resource::Group.new("aj")
+ @new_resource = Chef::Resource::Group.new("group name aj")
+ @new_resource.group_name("aj")
@provider = Chef::Provider::Group::Dscl.new(@new_resource, @run_context)
@output = <<-EOF
AppleMetaNodeLocation: /Local/Default