Skip to content

Commit

Permalink
Fix test spec/defines/run_spec.rb issue puppetlabs#124
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierHa committed Jan 22, 2018
1 parent cc3617e commit 7123047
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/defines/run_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -320,12 +320,12 @@

context 'when passing serveral environment variables' do
let(:params) { {'command' => 'command', 'image' => 'base', 'env' => ['FOO=BAR', 'FOO2=BAR2']} }
it { should contain_file(initscript).with_content(/-e FOO=BAR/).with_content(/-e FOO2=BAR2/) }
it { should contain_file(initscript).with_content(/-e "FOO=BAR"/).with_content(/-e "FOO2=BAR2"/) }
end

context 'when passing an environment variable' do
let(:params) { {'command' => 'command', 'image' => 'base', 'env' => 'FOO=BAR'} }
it { should contain_file(initscript).with_content(/-e FOO=BAR/) }
it { should contain_file(initscript).with_content(/-e "FOO=BAR"/) }
end

context 'when passing serveral environment files' do
Expand Down

0 comments on commit 7123047

Please sign in to comment.