Sha256: 9ef8a0f0f111ad189e6aa46c3f5221b98ce91a95e3b4dfdb086d809ad38af959

Contents?: true

Size: 555 Bytes

Versions: 203

Compression:

Stored size: 555 Bytes

Contents

require 'spec_helper'

set :os, { :family => 'darwin' }

describe get_command(:check_user_has_home_directory, 'foo', '/Users/foo') do
  it { should eq "finger foo | grep -E '^Directory' | awk '{ print $2 }' | grep -E '^/Users/foo$'" }
end

describe get_command(:check_user_has_login_shell, 'foo', '/bin/bash') do
  it { should eq "finger foo | grep -E '^Directory' | awk '{ print $4 }' | grep -E '^/bin/bash$'" }
end

describe get_command(:get_user_home_directory, 'foo') do
  it { should eq "finger foo | grep -E '^Directory' | awk '{ print $2 }'" }
end

Version data entries

203 entries across 203 versions & 3 rubygems

Version Path
specinfra-2.76.8 spec/command/darwin/user_spec.rb
specinfra-2.76.7 spec/command/darwin/user_spec.rb
specinfra-2.76.6 spec/command/darwin/user_spec.rb
specinfra-2.76.5 spec/command/darwin/user_spec.rb
specinfra-2.76.4 spec/command/darwin/user_spec.rb
specinfra-2.76.3 spec/command/darwin/user_spec.rb
specinfra-2.76.2 spec/command/darwin/user_spec.rb
specinfra-2.76.1 spec/command/darwin/user_spec.rb
specinfra-2.76.0 spec/command/darwin/user_spec.rb
specinfra-2.75.1 spec/command/darwin/user_spec.rb
specinfra-rb19-2.44.7 spec/command/darwin/user_spec.rb
specinfra-2.75.0 spec/command/darwin/user_spec.rb
specinfra-2.74.0 spec/command/darwin/user_spec.rb
specinfra-2.73.4 spec/command/darwin/user_spec.rb
specinfra-2.73.3 spec/command/darwin/user_spec.rb
specinfra-2.73.2 spec/command/darwin/user_spec.rb
specinfra-2.73.1 spec/command/darwin/user_spec.rb
specinfra-2.73.0 spec/command/darwin/user_spec.rb
specinfra-2.72.1 spec/command/darwin/user_spec.rb
specinfra-2.72.0 spec/command/darwin/user_spec.rb