diff options
author | James Lopez <james@jameslopez.es> | 2016-05-03 12:15:38 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-05-03 12:15:38 +0300 |
commit | 2a78e03ad54baf78b10fb3297cf0f38d78b87aa8 (patch) | |
tree | 12ce4c0244c71c02ea00f98771e039fa7a7122c8 /spec/support | |
parent | 58b0b1a6615958d2ca7628a06898f81b316e6637 (diff) | |
parent | f0c4f727359a5848d12e2097bad6a6a3190943ef (diff) |
Merge branches 'feature/project-export' and 'master' of gitlab.com:gitlab-org/gitlab-ce into feature/project-export
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/issue_tracker_service_shared_example.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/support/issue_tracker_service_shared_example.rb b/spec/support/issue_tracker_service_shared_example.rb new file mode 100644 index 00000000000..b6d7436c360 --- /dev/null +++ b/spec/support/issue_tracker_service_shared_example.rb @@ -0,0 +1,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 |