Welcome to mirror list, hosted at ThFree Co, Russian Federation.

source_spec.rb « project_config « ci « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: eefabe1babbb9fd214c96bfdabf0b44342ad866a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Gitlab::Ci::ProjectConfig::Source, feature_category: :continuous_integration do
  let_it_be(:custom_config_class) { Class.new(described_class) }
  let_it_be(:project) { build_stubbed(:project) }
  let_it_be(:sha) { '123456' }

  subject(:custom_config) { custom_config_class.new(project, sha, nil, nil, nil) }

  describe '#content' do
    subject(:content) { custom_config.content }

    it { expect { content }.to raise_error(NotImplementedError) }
  end

  describe '#source' do
    subject(:source) { custom_config.source }

    it { expect { source }.to raise_error(NotImplementedError) }
  end

  describe '#internal_include_prepended?' do
    subject(:internal_include_prepended) { custom_config.internal_include_prepended? }

    it { expect(internal_include_prepended).to eq(false) }
  end
end