Sha256: ad6f9c5dadf898c511a11b72f661fd5ab9636a3f22e5aadb0aac3eda6e23780b

Contents?: true

Size: 870 Bytes

Versions: 8

Compression:

Stored size: 870 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 '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 'PATH=/sbin:/usr/sbin:$PATH source ~/.zshrc && PATH=/sbin:/usr/sbin:$PATH command' }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
serverspec-0.5.7 spec/backend/exec/configuration_spec.rb
serverspec-0.5.6 spec/backend/exec/configuration_spec.rb
serverspec-0.5.5 spec/backend/exec/configuration_spec.rb
serverspec-0.5.4 spec/backend/exec/configuration_spec.rb
serverspec-0.5.3 spec/backend/exec/configuration_spec.rb
serverspec-0.5.2 spec/backend/exec/configuration_spec.rb
serverspec-0.5.1 spec/backend/exec/configuration_spec.rb
serverspec-0.5.0 spec/backend/exec/configuration_spec.rb