Sha256: db4d57522e7958f2fae907832ab4cc765d1dcf9d6aae3502fd4471bd839d7bef

Contents?: true

Size: 882 Bytes

Versions: 17

Compression:

Stored size: 882 Bytes

Contents

require 'spec_helper'

require 'serverspec/helper/base'
include Serverspec::Helper::Base
include Serverspec::Helper::Exec

describe 'configurations are not set' do
  context package('httpd') do
    its(:command) { should eq 'command' }
  end
end

describe 'path is set' do
  let(:path) { '/sbin:/usr/sbin' }
  context package('httpd') do
    its(:command) { should eq 'env PATH=/sbin:/usr/sbin:$PATH command' }
  end
end

describe 'pre_command is set' do
  let(:pre_command) { 'source ~/.zshrc' }
  context package('httpd') do
    its(:command) { should eq 'source ~/.zshrc && command' }
  end
end

describe 'path and pre_command are set' do
  let(:path) { '/sbin:/usr/sbin' }
  let(:pre_command) { 'source ~/.zshrc' }
  context package('httpd') do
    its(:command) { should eq 'env PATH=/sbin:/usr/sbin:$PATH source ~/.zshrc && env PATH=/sbin:/usr/sbin:$PATH command' }
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
serverspec-0.6.16 spec/backend/exec/configuration_spec.rb
serverspec-0.6.15 spec/backend/exec/configuration_spec.rb
serverspec-0.6.13 spec/backend/exec/configuration_spec.rb
serverspec-0.6.12 spec/backend/exec/configuration_spec.rb
serverspec-0.6.11 spec/backend/exec/configuration_spec.rb
serverspec-0.6.10 spec/backend/exec/configuration_spec.rb
serverspec-0.6.9 spec/backend/exec/configuration_spec.rb
serverspec-0.6.8 spec/backend/exec/configuration_spec.rb
serverspec-0.6.7 spec/backend/exec/configuration_spec.rb
serverspec-0.6.6 spec/backend/exec/configuration_spec.rb
serverspec-0.6.5 spec/backend/exec/configuration_spec.rb
serverspec-0.6.4 spec/backend/exec/configuration_spec.rb
serverspec-0.6.3 spec/backend/exec/configuration_spec.rb
serverspec-0.6.2 spec/backend/exec/configuration_spec.rb
serverspec-0.6.1 spec/backend/exec/configuration_spec.rb
serverspec-0.6.0 spec/backend/exec/configuration_spec.rb
serverspec-0.5.8 spec/backend/exec/configuration_spec.rb