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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-05-06 21:51:56 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-05-13 16:33:38 +0400
commit6b04a5f9108c640f638afa8055e2a5b60f926d5a (patch)
treea0d58992330c6c18a933cec75ea8d0c50620eb7c /spec/lib/gitlab/reference_extractor_spec.rb
parent1f1c59b61d30b76d69f0f925b43a0b96465f38ed (diff)
Add support for Jira ticket mentions in format JIRA-123.
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: CHANGELOG-EE
Diffstat (limited to 'spec/lib/gitlab/reference_extractor_spec.rb')
-rw-r--r--spec/lib/gitlab/reference_extractor_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/gitlab/reference_extractor_spec.rb b/spec/lib/gitlab/reference_extractor_spec.rb
index 19259a8b79c..99fed27c796 100644
--- a/spec/lib/gitlab/reference_extractor_spec.rb
+++ b/spec/lib/gitlab/reference_extractor_spec.rb
@@ -11,6 +11,12 @@ describe Gitlab::ReferenceExtractor do
subject.issues.should == ["1234"]
end
+ it 'extracts JIRA issue references' do
+ Gitlab.config.gitlab.stub(:issues_tracker).and_return("jira")
+ subject.analyze "this one talks about issue JIRA-1234"
+ subject.issues.should == ["JIRA-1234"]
+ end
+
it 'extracts merge request references' do
subject.analyze "and here's !43, a merge request"
subject.merge_requests.should == ["43"]