Sha256: dc4ea54276f3c3ac809dd8668c1c0284ef07db40ac51baccbb8aa93ca1ba7da9
Contents?: true
Size: 812 Bytes
Versions: 1
Compression:
Stored size: 812 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 context Specinfra.command.create_file_as_directory('/tmp') do it { should eq 'mkdir -p /tmp' } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
specinfra-2.0.0.beta20 | spec/command/base/file_spec.rb |