Sha256: d74da5afc876512edb7e26360c91a74165629db27f2d131a4f3e229759072977

Contents?: true

Size: 744 Bytes

Versions: 41

Compression:

Stored size: 744 Bytes

Contents

require 'spec_helper'

include SpecInfra::Helper::Cmd
include SpecInfra::Helper::Windows

describe group('test.group') do
  it { should exist }
  its(:command) { should eq "(FindGroup -groupName 'test.group') -ne $null" }
end

describe group('test.domain\test.group') do
  it { should exist }
  its(:command) { should eq "(FindGroup -groupName 'test.group' -domain 'test.domain') -ne $null" }
end

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

describe group('test.group') do
  it "should raise error if command is not supported" do 
    {
      :have_gid => [nil],
    }.each do |method, args|
      expect { should self.send(method, *args) }.to raise_error SpecInfra::Command::Windows::NotSupportedError
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
serverspec-1.16.0 spec/windows/group_spec.rb
serverspec-1.15.0 spec/windows/group_spec.rb
serverspec-1.14.0 spec/windows/group_spec.rb
serverspec-1.13.0 spec/windows/group_spec.rb
serverspec-1.12.0 spec/windows/group_spec.rb
serverspec-1.11.0 spec/windows/group_spec.rb
serverspec-1.10.0 spec/windows/group_spec.rb
serverspec-1.9.1 spec/windows/group_spec.rb
serverspec-1.9.0 spec/windows/group_spec.rb
serverspec-1.8.0 spec/windows/group_spec.rb
serverspec-1.7.1 spec/windows/group_spec.rb
serverspec-1.7.0 spec/windows/group_spec.rb
serverspec-1.6.0 spec/windows/group_spec.rb
serverspec-1.5.0 spec/windows/group_spec.rb
serverspec-1.4.2 spec/windows/group_spec.rb
serverspec-1.4.1 spec/windows/group_spec.rb
serverspec-1.4.0 spec/windows/group_spec.rb
serverspec-1.3.0 spec/windows/group_spec.rb
serverspec-1.2.0 spec/windows/group_spec.rb
serverspec-1.1.0 spec/windows/group_spec.rb