2018-10-15 14:42:47 +05:30
|
|
|
shared_examples 'helm commands' do
|
|
|
|
describe '#generate_script' do
|
|
|
|
let(:helm_setup) do
|
|
|
|
<<~EOS
|
2019-01-03 12:48:30 +05:30
|
|
|
set -eo pipefail
|
2018-10-15 14:42:47 +05:30
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'should return appropriate command' do
|
2019-01-03 12:48:30 +05:30
|
|
|
expect(subject.generate_script).to eq(helm_setup + commands)
|
2018-10-15 14:42:47 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|