Sha256: fb4f035e511a33c9249daeee1bc8aa9b2a63a3c0caf8e54baf91e5b419c35888
Contents?: true
Size: 1.01 KB
Versions: 5
Compression:
Stored size: 1.01 KB
Contents
require 'spec_helper' include Specinfra::Helper::Cmd set :os, :family => 'windows' describe commands.command_class('user').create do it { should be_an_instance_of(Specinfra::Command::Windows::Base::User) } end describe user('test.user') do it { should exist } end describe user('test.domain\test.user') do it { should exist } end describe user('invalid-user') do it { should_not exist } end describe user('test.user') do it { should belong_to_group 'test.group' } end describe user('test.user.domain\test.user') do it { should belong_to_group 'test.group.domain\test.group' } end describe user('test.user') do it { should_not belong_to_group 'invalid-group' } end describe user('test.user') do it "should raise error if command is not supported" do { :have_uid => [nil], :have_login_shell => [nil], :have_authorized_key => [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