Sha256: bbf3c9b6af126010c95a87d978795fbf7d1bcfc57256cfa02896ba4605c29d70

Contents?: true

Size: 501 Bytes

Versions: 20

Compression:

Stored size: 501 Bytes

Contents

shared_examples_for 'support group exist matcher' do |name|
  describe 'group exist' do
    describe group(name) do
      it { should be_group }
    end

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

shared_examples_for 'support group have_gid matcher' do |name, gid|
  describe 'have_gid' do
    describe group(name) do
      it { should have_gid gid }
    end

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
serverspec-0.5.8 spec/support/shared_user_examples.rb
serverspec-0.5.7 spec/support/shared_user_examples.rb
serverspec-0.5.6 spec/support/shared_user_examples.rb
serverspec-0.5.5 spec/support/shared_user_examples.rb
serverspec-0.5.4 spec/support/shared_user_examples.rb
serverspec-0.5.3 spec/support/shared_user_examples.rb
serverspec-0.5.2 spec/support/shared_user_examples.rb
serverspec-0.5.1 spec/support/shared_user_examples.rb
serverspec-0.5.0 spec/support/shared_user_examples.rb
serverspec-0.4.14 spec/support/shared_user_examples.rb
serverspec-0.4.13 spec/support/shared_user_examples.rb
serverspec-0.4.12 spec/support/shared_user_examples.rb
serverspec-0.4.11 spec/support/shared_user_examples.rb
serverspec-0.4.10 spec/support/shared_user_examples.rb
serverspec-0.4.9 spec/support/shared_user_examples.rb
serverspec-0.4.8 spec/support/shared_user_examples.rb
serverspec-0.4.7 spec/support/shared_user_examples.rb
serverspec-0.4.6 spec/support/shared_user_examples.rb
serverspec-0.4.5 spec/support/shared_user_examples.rb
serverspec-0.4.4 spec/support/shared_user_examples.rb