Sha256: 8c70d6e4e055365f3759321aaaf2368216aa335ff7c6c7523acafc108f4e608e

Contents?: true

Size: 693 Bytes

Versions: 5

Compression:

Stored size: 693 Bytes

Contents

require 'spec_helper'

include Specinfra::Helper::Cmd

set :os, :family => 'windows'

describe commands.command_class('group').create do
  it { should be_an_instance_of(Specinfra::Command::Windows::Base::Group) }
end

describe group('test.group') do
  it { should exist }
end

describe group('test.domain\test.group') do
  it { should exist }
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::Base::NotImplementedError
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta13 spec/type/windows/group_spec.rb
serverspec-2.0.0.beta12 spec/type/windows/group_spec.rb
serverspec-2.0.0.beta11 spec/type/windows/group_spec.rb
serverspec-2.0.0.beta10 spec/type/windows/group_spec.rb
serverspec-2.0.0.beta9 spec/type/windows/group_spec.rb