diff options
author | Felipe Artur <felipefac@gmail.com> | 2016-10-07 01:05:27 +0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2016-10-19 18:46:04 +0300 |
commit | 8e4301d982ce28d80e711865ac294a98ddce3ec6 (patch) | |
tree | 1f6d01b142ca952f3cd3098336fbb0762fe0a8dc /spec/models/external_issue_spec.rb | |
parent | f560849941dcb4408350c6c24034f845d3986782 (diff) |
Prevent wrong markdown on issue ids when project has Jira service activated
Diffstat (limited to 'spec/models/external_issue_spec.rb')
-rw-r--r-- | spec/models/external_issue_spec.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/spec/models/external_issue_spec.rb b/spec/models/external_issue_spec.rb index 4fc3b065592..ebba6e14578 100644 --- a/spec/models/external_issue_spec.rb +++ b/spec/models/external_issue_spec.rb @@ -10,21 +10,6 @@ describe ExternalIssue, models: true do it { is_expected.to include_module(Referable) } end - describe '.reference_pattern' do - it 'allows underscores in the project name' do - expect(ExternalIssue.reference_pattern.match('EXT_EXT-1234')[0]).to eq 'EXT_EXT-1234' - end - - it 'allows numbers in the project name' do - expect(ExternalIssue.reference_pattern.match('EXT3_EXT-1234')[0]).to eq 'EXT3_EXT-1234' - end - - it 'requires the project name to begin with A-Z' do - expect(ExternalIssue.reference_pattern.match('3EXT_EXT-1234')).to eq nil - expect(ExternalIssue.reference_pattern.match('EXT_EXT-1234')[0]).to eq 'EXT_EXT-1234' - end - end - describe '#to_reference' do it 'returns a String reference to the object' do expect(issue.to_reference).to eq issue.id |