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

Version Path
specinfra-2.91.0 spec/command/darwin/group_spec.rb
specinfra-2.90.1 spec/command/darwin/group_spec.rb
specinfra-2.90.0 spec/command/darwin/group_spec.rb
specinfra-2.89.0 spec/command/darwin/group_spec.rb
specinfra-2.88.2 spec/command/darwin/group_spec.rb
specinfra-2.88.1 spec/command/darwin/group_spec.rb
specinfra-2.88.0 spec/command/darwin/group_spec.rb
specinfra-2.87.2 spec/command/darwin/group_spec.rb
specinfra-2.87.1 spec/command/darwin/group_spec.rb
specinfra-2.87.0 spec/command/darwin/group_spec.rb
specinfra-2.86.0 spec/command/darwin/group_spec.rb
specinfra-2.85.1 spec/command/darwin/group_spec.rb
specinfra-2.85.0 spec/command/darwin/group_spec.rb
specinfra-2.84.1 spec/command/darwin/group_spec.rb
specinfra-2.84.0 spec/command/darwin/group_spec.rb
specinfra-2.83.4 spec/command/darwin/group_spec.rb
specinfra-2.83.3 spec/command/darwin/group_spec.rb
specinfra-2.83.2 spec/command/darwin/group_spec.rb
specinfra-2.83.1 spec/command/darwin/group_spec.rb
specinfra-2.83.0 spec/command/darwin/group_spec.rb