2018-04-30 05:18:14 -04:00
|
|
|
shared_examples 'helm commands' do
|
|
|
|
describe '#generate_script' do
|
|
|
|
let(:helm_setup) do
|
|
|
|
<<~EOS
|
2018-11-09 10:03:24 -05:00
|
|
|
set -xeo pipefail
|
2018-04-30 05:18:14 -04:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2019-04-05 04:43:27 -04:00
|
|
|
it 'returns appropriate command' do
|
2018-11-09 10:03:24 -05:00
|
|
|
expect(subject.generate_script.strip).to eq((helm_setup + commands).strip)
|
2018-04-30 05:18:14 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|