Sha256: e099eb7b90050539e90b55a4bc7b73661a9dae71a8d83f0bff8bf31d9da5d702

Contents?: true

Size: 535 Bytes

Versions: 6

Compression:

Stored size: 535 Bytes

Contents

require 'spec_helper'

set :os, :family => 'arch'

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

Version data entries

6 entries across 6 versions & 1 rubygems

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