Sha256: cbf43d39e3580e0d3cc3f42585b3bd0a782e69791e0bb6afb01702f8c003d652
Contents?: true
Size: 545 Bytes
Versions: 37
Compression:
Stored size: 545 Bytes
Contents
require 'spec_helper' set :os, { :family => 'darwin' } describe get_command(:get_group_gid, 'foo') do it { should eq "dscl . -read /Groups/foo PrimaryGroupID | awk '{ print $2 }'" } end describe get_command(:update_group_gid, 'foo', 1234) do it { should eq "dscl . -create /Groups/foo PrimaryGroupID 1234" } end describe get_command(:add_group, 'foo', :gid => 1234, :groupname => 'bar') do it { should eq 'dscl . -create /Groups/foo && dscl . -create /Groups/foo PrimaryGroupID 1234 && dscl . -create /Groups/foo RecordName bar' } end
Version data entries
37 entries across 37 versions & 1 rubygems