summaryrefslogtreecommitdiff
path: root/spec/helpers/issues_helper_spec.rb
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <mail@zjvandeweg.nl>2015-10-13 09:41:46 +0200
committerZeger-Jan van de Weg <mail@zjvandeweg.nl>2015-10-16 09:59:32 +0200
commit94a788f66dfcc13ad02855b05c38826f958038af (patch)
treee99ed267a2e646607f05a7632feefd3a776b5d0b /spec/helpers/issues_helper_spec.rb
parent9f9f0c35ecd9f7a5a057030253791d051f832f6d (diff)
downloadgitlab-ce-94a788f66dfcc13ad02855b05c38826f958038af.tar.gz
Only accept open issues and merge requests
Diffstat (limited to 'spec/helpers/issues_helper_spec.rb')
-rw-r--r--spec/helpers/issues_helper_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/helpers/issues_helper_spec.rb b/spec/helpers/issues_helper_spec.rb
index c08ddb4cae1..78a6b631eb2 100644
--- a/spec/helpers/issues_helper_spec.rb
+++ b/spec/helpers/issues_helper_spec.rb
@@ -117,4 +117,14 @@ describe IssuesHelper do
end
end
+ describe "#merge_requests_sentence" do
+ subject { merge_requests_sentence(merge_requests)}
+ let(:merge_requests) do
+ [ build(:merge_request, iid: 1), build(:merge_request, iid: 2),
+ build(:merge_request, iid: 3)]
+ end
+
+ it { is_expected.to eq("!1, !2, or !3") }
+ end
+
end