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

base_input_spec.rb « inputs « interpolation « config « ci « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 30036ee68edbdc75869dd97ee5bbdd6b761afd26 (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
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Gitlab::Ci::Config::Interpolation::Inputs::BaseInput, feature_category: :pipeline_composition do
  describe '.matches?' do
    it 'is not implemented' do
      expect { described_class.matches?(double) }.to raise_error(NotImplementedError)
    end
  end

  describe '.type_name' do
    it 'is not implemented' do
      expect { described_class.type_name }.to raise_error(NotImplementedError)
    end
  end

  describe '#valid_value?' do
    it 'is not implemented' do
      expect do
        described_class.new(
          name: 'website', spec: { website: nil }, value: { website: 'example.com' }
        ).valid_value?('test')
      end.to raise_error(NotImplementedError)
    end
  end
end