summaryrefslogtreecommitdiff
path: root/spec/presenters
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-21 18:09:26 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-21 18:09:26 +0000
commit07d811cd3cf4d3a1802363532756bf69cfc6346f (patch)
tree4c0488ee52df65d58ba5c97a4e83bf1971469e34 /spec/presenters
parent71c6e099a8b019ab7749e43b63885d52de60e316 (diff)
downloadgitlab-ce-07d811cd3cf4d3a1802363532756bf69cfc6346f.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/presenters')
-rw-r--r--spec/presenters/issue_presenter_spec.rb4
-rw-r--r--spec/presenters/releases/link_presenter_spec.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/presenters/issue_presenter_spec.rb b/spec/presenters/issue_presenter_spec.rb
index e11ecd5bf6c..f9a3be9bbed 100644
--- a/spec/presenters/issue_presenter_spec.rb
+++ b/spec/presenters/issue_presenter_spec.rb
@@ -29,7 +29,7 @@ RSpec.describe IssuePresenter do
describe '#web_url' do
it 'returns correct path' do
- expect(presenter.web_url).to eq("http://localhost/#{group.name}/#{project.name}/-/issues/#{presented_issue.iid}")
+ expect(presenter.web_url).to eq("http://localhost/#{project.full_path}/-/issues/#{presented_issue.iid}")
end
context 'when issue type is task' do
@@ -59,7 +59,7 @@ RSpec.describe IssuePresenter do
describe '#issue_path' do
it 'returns correct path' do
- expect(presenter.issue_path).to eq("/#{group.name}/#{project.name}/-/issues/#{presented_issue.iid}")
+ expect(presenter.issue_path).to eq("/#{project.full_path}/-/issues/#{presented_issue.iid}")
end
context 'when issue type is task' do
diff --git a/spec/presenters/releases/link_presenter_spec.rb b/spec/presenters/releases/link_presenter_spec.rb
index e52c68ffb38..79cfab0bc0a 100644
--- a/spec/presenters/releases/link_presenter_spec.rb
+++ b/spec/presenters/releases/link_presenter_spec.rb
@@ -15,7 +15,7 @@ RSpec.describe Releases::LinkPresenter do
context 'when filepath is provided' do
let(:filepath) { '/bin/bigfile.exe' }
let(:expected_url) do
- "http://localhost/#{release.project.namespace.path}/#{release.project.name}" \
+ "http://localhost/#{release.project.full_path}" \
"/-/releases/#{release.tag}/downloads/bin/bigfile.exe"
end