summaryrefslogtreecommitdiff
path: root/spec/services
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2016-12-06 12:17:12 +0000
committerSean McGivern <sean@mcgivern.me.uk>2016-12-06 12:17:12 +0000
commite27fa5bc14382abb4383ad5df2867f23bf9f1092 (patch)
tree5db18c1ce71a06b2c7e7a9e6005c5720efc95398 /spec/services
parentdc5af2ec202a96c45af61e7e38fafebd569f0c36 (diff)
parentfe957b5ed8b473b695ad53cfa9680de110e3d3ee (diff)
downloadgitlab-ce-e27fa5bc14382abb4383ad5df2867f23bf9f1092.tar.gz
Merge branch 'glm-shorthand-reference' into 'master'
GLM shorthand reference for projects from the same namespace Closes #21679 See merge request !7255
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/issues/move_service_spec.rb4
-rw-r--r--spec/services/system_note_service_spec.rb2
2 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 c7de0d0c534..db196ed5751 100644
--- a/spec/services/issues/move_service_spec.rb
+++ b/spec/services/issues/move_service_spec.rb
@@ -189,7 +189,7 @@ describe Issues::MoveService, services: true do
it 'rewrites references using a cross reference to old project' do
expect(new_note.note)
- .to eq "Note with reference to merge request #{old_project.to_reference}!1"
+ .to eq "Note with reference to merge request #{old_project.to_reference(new_project)}!1"
end
end
@@ -217,7 +217,7 @@ describe Issues::MoveService, services: true do
it 'rewrites referenced issues creating cross project reference' do
expect(new_issue.description)
- .to eq "Some description #{old_project.to_reference}#{another_issue.to_reference}"
+ .to eq "Some description #{another_issue.to_reference(new_project)}"
end
end
diff --git a/spec/services/system_note_service_spec.rb b/spec/services/system_note_service_spec.rb
index 435cfb07292..4bffe622d72 100644
--- a/spec/services/system_note_service_spec.rb
+++ b/spec/services/system_note_service_spec.rb
@@ -530,7 +530,7 @@ describe SystemNoteService, services: true do
end
it 'mentions referenced project' do
- expect(subject.note).to include new_project.to_reference
+ expect(subject.note).to include new_project.path_with_namespace
end
end