diff options
author | Ted Hogan <ted.hogan17@gmail.com> | 2015-11-23 11:36:47 -0700 |
---|---|---|
committer | Ted Hogan <ted.hogan17@gmail.com> | 2015-11-23 11:52:43 -0700 |
commit | 6e6a99061dbec4bb45a398a03e8a13a084e44035 (patch) | |
tree | 92d6f72d767a1236374bd0b8c33ba42b1240c909 /spec | |
parent | 36f7b624be0926b45b6a45aabea2beecfba72e50 (diff) | |
download | gitlab-ce-6e6a99061dbec4bb45a398a03e8a13a084e44035.tar.gz |
No space required after WIP identifier
Modified changelog
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/merge_request_spec.rb | 15 |
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 |