Sha256: 7e9f9d3fd6ae702f342e4b849954eec288efb5c94a2ee5756d0fc21259bb4609
Contents?: true
Size: 1.05 KB
Versions: 3
Compression:
Stored size: 1.05 KB
Contents
require 'spec_helper' set :os, { :family => nil } describe 'File related commands' do after do property[:os_by_host] = nil end context Specinfra.command.get(:check_file_is_directory, '/tmp') do it { should eq 'test -d /tmp' } end context Specinfra.command.get(:change_file_mode, '/tmp', '0644') do it { should eq 'chmod 0644 /tmp' } end context Specinfra.command.get(:change_file_owner, '/tmp', 'root') do it { should eq 'chown root /tmp' } end context Specinfra.command.get(:change_file_owner, '/tmp', 'root', 'root') do it { should eq 'chown root:root /tmp' } end context Specinfra.command.get(:change_file_group, '/tmp', 'root') do it { should eq 'chgrp root /tmp' } end context Specinfra.command.get(:create_file_as_directory, '/tmp') do it { should eq 'mkdir -p /tmp' } end context Specinfra.command.get(:get_file_owner_user, '/tmp') do it { should eq 'stat -c %U /tmp' } end context Specinfra.command.get(:get_file_owner_group, '/tmp') do it { should eq 'stat -c %G /tmp' } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
specinfra-2.0.0.beta34 | spec/command/base/file_spec.rb |
specinfra-2.0.0.beta33 | spec/command/base/file_spec.rb |
specinfra-2.0.0.beta32 | spec/command/base/file_spec.rb |