Sha256: 3817ff0c8ef07bf02dcad385cc098a9742ce78ba1572d07ee5493c381bc6b78d

Contents?: true

Size: 507 Bytes

Versions: 307

Compression:

Stored size: 507 Bytes

Contents

require 'spec_helper'

property[:os] = nil
set :os, :family => 'darwin'

describe get_command(:get_file_sha256sum, '/etc/services') do
  it { should eq 'ruby -e "require \'digest\'; puts Digest::SHA256.hexdigest File.read \'/etc/services\'"' }
end

describe get_command(:check_file_is_owned_by, '/tmp', 'root') do
  it { should eq 'stat -f %Su /tmp | grep -- \\^root\\$' }
end

describe get_command(:check_file_is_grouped, '/tmp', 'wheel') do
  it { should eq 'stat -f %Sg /tmp | grep -- \\^wheel\\$' }
end

Version data entries

307 entries across 307 versions & 3 rubygems

Version Path
specinfra-2.91.0 spec/command/darwin/file_spec.rb
specinfra-2.90.1 spec/command/darwin/file_spec.rb
specinfra-2.90.0 spec/command/darwin/file_spec.rb
specinfra-2.89.0 spec/command/darwin/file_spec.rb
specinfra-2.88.2 spec/command/darwin/file_spec.rb
specinfra-2.88.1 spec/command/darwin/file_spec.rb
specinfra-2.88.0 spec/command/darwin/file_spec.rb
specinfra-2.87.2 spec/command/darwin/file_spec.rb
specinfra-2.87.1 spec/command/darwin/file_spec.rb
specinfra-2.87.0 spec/command/darwin/file_spec.rb
specinfra-2.86.0 spec/command/darwin/file_spec.rb
specinfra-2.85.1 spec/command/darwin/file_spec.rb
specinfra-2.85.0 spec/command/darwin/file_spec.rb
specinfra-2.84.1 spec/command/darwin/file_spec.rb
specinfra-2.84.0 spec/command/darwin/file_spec.rb
specinfra-2.83.4 spec/command/darwin/file_spec.rb
specinfra-2.83.3 spec/command/darwin/file_spec.rb
specinfra-2.83.2 spec/command/darwin/file_spec.rb
specinfra-2.83.1 spec/command/darwin/file_spec.rb
specinfra-2.83.0 spec/command/darwin/file_spec.rb