Sha256: cf505a3b85f8567cfcf214f4a92c8770f88f341f09713530a0b574e77f260e06
Contents?: true
Size: 602 Bytes
Versions: 2
Compression:
Stored size: 602 Bytes
Contents
require 'spec_helper' require 'serverspec/helper/exec' require 'serverspec/helper/base' include Serverspec::Helper::Exec include Serverspec::Helper::Base describe 'Default path setting' do subject { backend.build_command('service httpd status') } it { should eq 'service httpd status' } end describe 'Custom path setting' do before :all do RSpec.configure do |c| c.path = '/usr/local/rbenv/shims:/sbin:/usr/sbin' end end subject { backend.build_command('service httpd status') } it { should eq 'PATH=/usr/local/rbenv/shims:/sbin:/usr/sbin:$PATH service httpd status' } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
serverspec-0.4.14 | spec/backend/exec_spec.rb |
serverspec-0.4.13 | spec/backend/exec_spec.rb |