summaryrefslogtreecommitdiff
path: root/spec/services/issues/move_service_spec.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-11-23 14:55:23 +0800
committerDouwe Maan <douwe@selenight.nl>2016-11-24 18:26:29 +0800
commit6df22f72c6c312199c547e017ce1f947cf88e34c (patch)
treec91130ad2d0bca231dd38d359c061a4227c778c0 /spec/services/issues/move_service_spec.rb
parentd0c0c75ca9568bc3ec00c341a6053623d85e6201 (diff)
downloadgitlab-ce-6df22f72c6c312199c547e017ce1f947cf88e34c.tar.gz
Rephrase some system notes to be compatible with new system note stylerephrase-system-notes
Diffstat (limited to 'spec/services/issues/move_service_spec.rb')
-rw-r--r--spec/services/issues/move_service_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/services/issues/move_service_spec.rb b/spec/services/issues/move_service_spec.rb
index f0ded06b785..c7de0d0c534 100644
--- a/spec/services/issues/move_service_spec.rb
+++ b/spec/services/issues/move_service_spec.rb
@@ -81,11 +81,11 @@ describe Issues::MoveService, services: true do
end
it 'adds system note to old issue at the end' do
- expect(old_issue.notes.last.note).to match /^Moved to/
+ expect(old_issue.notes.last.note).to start_with 'moved to'
end
it 'adds system note to new issue at the end' do
- expect(new_issue.notes.last.note).to match /^Moved from/
+ expect(new_issue.notes.last.note).to start_with 'moved from'
end
it 'closes old issue' do
@@ -151,7 +151,7 @@ describe Issues::MoveService, services: true do
end
it 'adds a system note about move after rewritten notes' do
- expect(system_notes.last.note).to match /^Moved from/
+ expect(system_notes.last.note).to match /^moved from/
end
it 'preserves orignal author of comment' do