debian-mirror-gitlab/spec/lib/gitlab/ci/input/arguments/unknown_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
538 B
Ruby
Raw Permalink Normal View History

2023-05-27 22:25:52 +05:30
# 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