summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTed Hogan <ted.hogan17@gmail.com>2015-11-23 11:36:47 -0700
committerTed Hogan <ted.hogan17@gmail.com>2015-11-23 11:52:43 -0700
commit6e6a99061dbec4bb45a398a03e8a13a084e44035 (patch)
tree92d6f72d767a1236374bd0b8c33ba42b1240c909 /spec
parent36f7b624be0926b45b6a45aabea2beecfba72e50 (diff)
downloadgitlab-ce-6e6a99061dbec4bb45a398a03e8a13a084e44035.tar.gz
No space required after WIP identifier
Modified changelog
Diffstat (limited to 'spec')
-rw-r--r--spec/models/merge_request_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/models/merge_request_spec.rb b/spec/models/merge_request_spec.rb
index 567c911425c..edf211c85c1 100644
--- a/spec/models/merge_request_spec.rb
+++ b/spec/models/merge_request_spec.rb
@@ -162,6 +162,21 @@ describe MergeRequest do
expect(subject).to be_work_in_progress
end
+ it "detects the 'WIP' prefix" do
+ subject.title = "WIP#{subject.title}"
+ expect(subject).to be_work_in_progress
+ end
+
+ it "detects the 'WIP:' prefix" do
+ subject.title = "WIP:#{subject.title}"
+ expect(subject).to be_work_in_progress
+ end
+
+ it "detects the '[WIP]' prefix" do
+ subject.title = "[WIP]#{subject.title}"
+ expect(subject).to be_work_in_progress
+ end
+
it "doesn't detect WIP for words starting with WIP" do
subject.title = "Wipwap #{subject.title}"
expect(subject).not_to be_work_in_progress