Sha256: a79ddd639231a1a567aee21a31742a417e33d96c2d009074bff46c08e9e9c2c6

Contents?: true

Size: 974 Bytes

Versions: 5

Compression:

Stored size: 974 Bytes

Contents

require 'spec_helper'

set :os, :family => 'darwin'

describe commands.command_class('file').create do
  it { should be_an_instance_of(Specinfra::Command::Darwin::Base::File) }
end

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/services') do
  it { should match_md5checksum '35435ea447c19f0ea5ef971837ab9ced' }
end

describe file('/etc/services') do
  it { should match_sha256checksum '0c3feee1353a8459f8c7d84885e6bc602ef853751ffdbce3e3b6dfa1d345fc7a' }
end

describe file('/etc/pam.d/system-auth') do
  it { should be_linked_to '/etc/pam.d/system-auth-ac' }
end

describe file('/etc/passwd') do
  it { should be_mode 644 }
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

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta13 spec/type/darwin/file_spec.rb
serverspec-2.0.0.beta12 spec/type/darwin/file_spec.rb
serverspec-2.0.0.beta11 spec/type/darwin/file_spec.rb
serverspec-2.0.0.beta10 spec/type/darwin/file_spec.rb
serverspec-2.0.0.beta9 spec/type/darwin/file_spec.rb