summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples/lib/gitlab/helm_generated_script_shared_examples.rb
blob: bbf8a946f8baa61985f1c7cbd1ccc96b816298bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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