debian-mirror-gitlab/spec/support/shared_examples/lib/gitlab/helm_generated_script_shared_examples.rb
2020-03-13 15:44:24 +05:30

15 lines
327 B
Ruby

# frozen_string_literal: true
RSpec.shared_examples 'helm commands' do
describe '#generate_script' do
let(:helm_setup) do
<<~EOS
set -xeo pipefail
EOS
end
it 'returns appropriate command' do
expect(subject.generate_script.strip).to eq((helm_setup + commands).strip)
end
end
end