diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-02-06 00:04:49 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-02-08 15:56:12 +0300 |
commit | fd21d72b1b7042566b6deff184ddcc86cc4907f4 (patch) | |
tree | 6efc7b76f54eff2bbf9b31d56d494bd9e0b869a8 /spec/lib/gitlab/closing_issue_extractor_spec.rb | |
parent | 0a34f2dcb562098c481140246f7ac22683b38d76 (diff) |
Extend issue closing pattern.
Diffstat (limited to 'spec/lib/gitlab/closing_issue_extractor_spec.rb')
-rw-r--r-- | spec/lib/gitlab/closing_issue_extractor_spec.rb | 92 |
1 files changed, 91 insertions, 1 deletions
diff --git a/spec/lib/gitlab/closing_issue_extractor_spec.rb b/spec/lib/gitlab/closing_issue_extractor_spec.rb index 867455daf23..0a1f3fa351d 100644 --- a/spec/lib/gitlab/closing_issue_extractor_spec.rb +++ b/spec/lib/gitlab/closing_issue_extractor_spec.rb @@ -28,12 +28,102 @@ describe Gitlab::ClosingIssueExtractor do end it do + message = "Closing ##{iid1}" + subject.closed_by_message_in_project(message, project).should == [issue] + end + + it do + message = "closing ##{iid1}" + subject.closed_by_message_in_project(message, project).should == [issue] + end + + it do + message = "Close ##{iid1}" + subject.closed_by_message_in_project(message, project).should == [issue] + end + + it do + message = "close ##{iid1}" + subject.closed_by_message_in_project(message, project).should == [issue] + end + + it do + message = "Awesome commit (Fixes ##{iid1})" + subject.closed_by_message_in_project(message, project).should == [issue] + end + + it do message = "Awesome commit (fixes ##{iid1})" subject.closed_by_message_in_project(message, project).should == [issue] end it do - message = "Awesome commit (fix ##{iid1})" + message = "Fixed ##{iid1}" + subject.closed_by_message_in_project(message, project).should == [issue] + end + + it do + message = "fixed ##{iid1}" + subject.closed_by_message_in_project(message, project).should == [issue] + end + + it do + message = "Fixing ##{iid1}" + subject.closed_by_message_in_project(message, project).should == [issue] + end + + it do + message = "fixing ##{iid1}" + subject.closed_by_message_in_project(message, project).should == [issue] + end + + it do + message = "Fix ##{iid1}" + subject.closed_by_message_in_project(message, project).should == [issue] + end + + it do + message = "fix ##{iid1}" + subject.closed_by_message_in_project(message, project).should == [issue] + end + + it do + message = "Awesome commit (Resolves ##{iid1})" + subject.closed_by_message_in_project(message, project).should == [issue] + end + + it do + message = "Awesome commit (resolves ##{iid1})" + subject.closed_by_message_in_project(message, project).should == [issue] + end + + it do + message = "Resolved ##{iid1}" + subject.closed_by_message_in_project(message, project).should == [issue] + end + + it do + message = "resolved ##{iid1}" + subject.closed_by_message_in_project(message, project).should == [issue] + end + + it do + message = "Resolving ##{iid1}" + subject.closed_by_message_in_project(message, project).should == [issue] + end + + it do + message = "resolving ##{iid1}" + subject.closed_by_message_in_project(message, project).should == [issue] + end + + it do + message = "Resolve ##{iid1}" + subject.closed_by_message_in_project(message, project).should == [issue] + end + + it do + message = "resolve ##{iid1}" subject.closed_by_message_in_project(message, project).should == [issue] end end |