debian-mirror-gitlab/spec/support/shared_examples/helm_generated_script.rb

14 lines
296 B
Ruby
Raw Normal View History

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