summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorSerdar Sutay <serdar@opscode.com>2014-10-24 13:36:55 -0700
committerSerdar Sutay <serdar@opscode.com>2014-10-24 13:36:55 -0700
commit8a3da2f3d77b5cd2e3b3952e257706af5f463244 (patch)
tree0e42fb891168aba5f4e6f2e6a630b587c4d3074a /spec
parentadf1995120d81e9083e7b0650ad9afcab444aa85 (diff)
parent8be7f51256ca5117d4fcb4fb1fab6233c84e0ddf (diff)
downloadchef-8a3da2f3d77b5cd2e3b3952e257706af5f463244.tar.gz
Merge pull request #2251 from chilicheech/fix_dscl_group_name
use group_name when checking if the group exists on mac osx with dscl
Diffstat (limited to 'spec')
-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