diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-05-26 22:55:26 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-05-26 22:55:26 +0300 |
commit | 2c1bf71793963f53c0921325ced2c7ad44a5fe95 (patch) | |
tree | 5209460a4ab71c2eace72e3c6dff35a40a03493e /spec/lib/gitlab/closing_issue_extractor_spec.rb | |
parent | 5a9c5520d9e63a38ed8b839be8430a5b5815da67 (diff) |
Fix ClosingIssueExtractor specs
Diffstat (limited to 'spec/lib/gitlab/closing_issue_extractor_spec.rb')
-rw-r--r-- | spec/lib/gitlab/closing_issue_extractor_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/lib/gitlab/closing_issue_extractor_spec.rb b/spec/lib/gitlab/closing_issue_extractor_spec.rb index 63d474c0d1e..5d7ff4f6122 100644 --- a/spec/lib/gitlab/closing_issue_extractor_spec.rb +++ b/spec/lib/gitlab/closing_issue_extractor_spec.rb @@ -137,28 +137,28 @@ describe Gitlab::ClosingIssueExtractor do let(:reference3) { third_issue.to_reference } it 'fetches issues in single line message' do - message = "Closes #{reference} and fix ##{reference2}" + message = "Closes #{reference} and fix #{reference2}" expect(subject.closed_by_message(message)). to eq([issue, other_issue]) end it 'fetches comma-separated issues references in single line message' do - message = "Closes #{reference}, closes ##{reference2}" + message = "Closes #{reference}, closes #{reference2}" expect(subject.closed_by_message(message)). to eq([issue, other_issue]) end it 'fetches comma-separated issues numbers in single line message' do - message = "Closes #{reference}, ##{reference2} and ##{reference3}" + message = "Closes #{reference}, #{reference2} and #{reference3}" expect(subject.closed_by_message(message)). to eq([issue, other_issue, third_issue]) end it 'fetches issues in multi-line message' do - message = "Awesome commit (closes #{reference})\nAlso fixes ##{reference2}" + message = "Awesome commit (closes #{reference})\nAlso fixes #{reference2}" expect(subject.closed_by_message(message)). to eq([issue, other_issue]) @@ -166,7 +166,7 @@ describe Gitlab::ClosingIssueExtractor do it 'fetches issues in hybrid message' do message = "Awesome commit (closes #{reference})\n"\ - "Also fixing issues ##{reference2}, ##{reference3} and #4" + "Also fixing issues #{reference2}, #{reference3} and #4" expect(subject.closed_by_message(message)). to eq([issue, other_issue, third_issue]) |