2019-10-12 21:52:04 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-10-15 14:42:47 +05:30
|
|
|
shared_examples 'helm commands' do
|
|
|
|
describe '#generate_script' do
|
|
|
|
let(:helm_setup) do
|
|
|
|
<<~EOS
|
2019-02-15 15:39:39 +05:30
|
|
|
set -xeo pipefail
|
2018-10-15 14:42:47 +05:30
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2019-07-07 11:18:12 +05:30
|
|
|
it 'returns appropriate command' do
|
2019-02-15 15:39:39 +05:30
|
|
|
expect(subject.generate_script.strip).to eq((helm_setup + commands).strip)
|
2018-10-15 14:42:47 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|