Sha256: c0c1d6240a9e4e7ea68f6b182e26ee75e9846a477751d2d762df5116dd9144ca
Contents?: true
Size: 713 Bytes
Versions: 8
Compression:
Stored size: 713 Bytes
Contents
require 'spec_helper' include Serverspec::Helper::Cmd 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
8 entries across 8 versions & 1 rubygems