Sha256: f7fb5f6fb963e1b96a5e93952975a06d4ba1841499b1e50bfcc5d01a5ca6271d

Contents?: true

Size: 609 Bytes

Versions: 2

Compression:

Stored size: 609 Bytes

Contents

require 'spec_helper'

set :os, {:family => 'aix'}

describe file('/tmp') do
  it { should be_readable.by_user('mail') }
end

describe file('/tmp') do
  it { should be_writable.by_user('mail') }
end

describe file('/tmp') do
  it { should be_executable.by_user('mail') }
end

describe file('/etc/passwd') do
  it 'be_mode is not implemented' do
    expect {
      should be_mode 644
    }.to raise_error(Specinfra::Command::Base::NotImplementedError)
  end
end

describe file('/etc/passwd') do
  it { should be_owned_by 'root' }
end

describe file('/etc/passwd') do
  it { should be_grouped_into 'root' }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta15 spec/type/aix/file_spec.rb
serverspec-2.0.0.beta14 spec/type/aix/file_spec.rb