Commit d9e1d0cb authored by Alex Kalderimis's avatar Alex Kalderimis

Alias shared example block during rename

parent ae766b0d
# frozen_string_literal: true
RSpec.shared_examples 'issue tracker service URL attribute' do |url_attr|
RSpec.shared_examples 'issue tracker integration URL attribute' do |url_attr|
it { is_expected.to allow_value('https://example.com').for(url_attr) }
it { is_expected.not_to allow_value('example.com').for(url_attr) }
......@@ -8,6 +8,12 @@ RSpec.shared_examples 'issue tracker service URL attribute' do |url_attr|
it { is_expected.not_to allow_value('herp-and-derp').for(url_attr) }
end
# TODO: clean up:
# remove when https://gitlab.com/gitlab-org/gitlab/-/issues/330300 has been completed
RSpec.shared_examples 'issue tracker service URL attribute' do |url_attr|
it_behaves_like 'issue tracker integration URL attribute', url_attr
end
RSpec.shared_examples 'allows project key on reference pattern' do |url_attr|
it 'allows underscores in the project name' do
expect(described_class.reference_pattern.match('EXT_EXT-1234')[0]).to eq 'EXT_EXT-1234'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment