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

issue_tracker_service_shared_example.rb « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b6d7436c3609efa3d740c237ed4fa0704250ccd8 (plain)
1
2
3
4
5
6
7
RSpec.shared_examples 'issue tracker service 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) }
  it { is_expected.not_to allow_value('ftp://example.com').for(url_attr) }
  it { is_expected.not_to allow_value('herp-and-derp').for(url_attr) }
end