Sha256: 2732e429521f08d02e4fadc75bd881db1a8750aa27505f106d1064eb60bc9974
Contents?: true
Size: 747 Bytes
Versions: 1
Compression:
Stored size: 747 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 Serverspec::Commands::Windows::NotSupportedError end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
serverspec-0.12.0 | spec/windows/group_spec.rb |