Sha256: e2d020edf84779476b3b5c2e4c4fe22ead3e0630309291df6d81c7481052385f

Contents?: true

Size: 471 Bytes

Versions: 6

Compression:

Stored size: 471 Bytes

Contents

require 'spec_helper'

include SpecInfra::Helper::Fedora

describe group('root') do
  it { should exist }
  its(:command) { should eq "getent group | grep -wq -- root" }
end

describe group('invalid-group') do
  it { should_not exist }
end

describe group('root') do
  it { should have_gid 0 }
  its(:command) { should eq "getent group | grep -w -- \\^root | cut -f 3 -d ':' | grep -w -- 0" }
end

describe group('root') do
  it { should_not have_gid 'invalid-gid' }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
serverspec-1.9.0 spec/fedora/group_spec.rb
serverspec-1.8.0 spec/fedora/group_spec.rb
serverspec-1.7.1 spec/fedora/group_spec.rb
serverspec-1.7.0 spec/fedora/group_spec.rb
serverspec-1.6.0 spec/fedora/group_spec.rb
serverspec-1.5.0 spec/fedora/group_spec.rb