Sha256: 188ed6b5d9297dc11b5674439a23a5d18f740ad8aa4f3360090a39dd40ad8a59

Contents?: true

Size: 704 Bytes

Versions: 2

Compression:

Stored size: 704 Bytes

Contents

require 'spec_helper'

set :os, { :family => nil }

describe 'File related commands'  do
  after do
    property[:os_by_host] = nil
  end

  context Specinfra.command.check_file_is_directory('/tmp') do
    it { should eq 'test -d /tmp' }
  end

  context Specinfra.command.change_file_mode('/tmp', '0644') do
    it { should eq 'chmod 0644 /tmp' }
  end

  context Specinfra.command.change_file_owner('/tmp', 'root') do
    it { should eq 'chown root /tmp' }
  end

  context Specinfra.command.change_file_owner('/tmp', 'root', 'root') do
    it { should eq 'chown root:root /tmp' }
  end

  context Specinfra.command.change_file_group('/tmp', 'root') do
    it { should eq 'chgrp root /tmp' }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
specinfra-2.0.0.beta19 spec/command/base/file_spec.rb
specinfra-2.0.0.beta18 spec/command/base/file_spec.rb