Sha256: 73a93900742554cbc8d57eadf36b7b8aee340889a67aab791598b3de370bef82

Contents?: true

Size: 596 Bytes

Versions: 6

Compression:

Stored size: 596 Bytes

Contents

require 'spec_helper'

set :os, :family => 'redhat'

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

describe file('/tmp') do
  it { should_not be_readable.by_user('invalid-user') }
end

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

describe file('/tmp') do
  it { should_not be_writable.by_user('invalid-user') }
end


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

describe file('/tmp') do
  it { should_not be_executable.by_user('invalid-user') }
end

describe file('/tmp') do
  it { should be_immutable }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta19 spec/type/redhat/file_spec.rb
serverspec-2.0.0.beta18 spec/type/redhat/file_spec.rb
serverspec-2.0.0.beta17 spec/type/redhat/file_spec.rb
serverspec-2.0.0.beta16 spec/type/redhat/file_spec.rb
serverspec-2.0.0.beta15 spec/type/redhat/file_spec.rb
serverspec-2.0.0.beta14 spec/type/redhat/file_spec.rb