Sha256: 85b53ff415336082e85e83d8a7de41a0485d17b0b8500163a51375a279552e58

Contents?: true

Size: 668 Bytes

Versions: 5

Compression:

Stored size: 668 Bytes

Contents

require 'spec_helper'

set :os, :family => 'solaris'

describe commands.command_class('user').create do
  it { should be_an_instance_of(Specinfra::Command::Solaris::Base::User) }
end

describe user('root') do
  it { should belong_to_group 'root' }
end

describe user('root') do
  it { should_not belong_to_group 'invalid-group' }
end

describe user('root') do
  it { should have_login_shell '/bin/bash' }
end

describe user('root') do
  it { should_not have_login_shell 'invalid-login-shell' }
end

describe user('root') do
  it { should have_home_directory '/root' }
end

describe user('root') do
  it { should_not have_home_directory 'invalid-home-directory' }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta13 spec/type/solaris/user_spec.rb
serverspec-2.0.0.beta12 spec/type/solaris/user_spec.rb
serverspec-2.0.0.beta11 spec/type/solaris/user_spec.rb
serverspec-2.0.0.beta10 spec/type/solaris/user_spec.rb
serverspec-2.0.0.beta9 spec/type/solaris/user_spec.rb