debian-mirror-gitlab/spec/lib/gitlab/ci/input/arguments/unknown_spec.rb
2023-05-27 22:25:52 +05:30

18 lines
538 B
Ruby

# frozen_string_literal: true
require 'fast_spec_helper'
RSpec.describe Gitlab::Ci::Input::Arguments::Unknown, feature_category: :pipeline_composition do
it 'raises an error when someone tries to evaluate the value' do
argument = described_class.new(:website, nil, 'https://example.gitlab.com')
expect(argument).not_to be_valid
expect { argument.to_value }.to raise_error ArgumentError
end
describe '.matches?' do
it 'always matches' do
expect(described_class.matches?('abc')).to be true
end
end
end