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