summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-02-08 16:42:25 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-02-08 16:42:25 +0000
commitb7c3da3b3457b54d7acbf040515f57b6b8974fc8 (patch)
tree2b18db59f007ae6c8c66568d8baa03bbefb8bcff
parent02529530a3dd71b017421bfc33ee2cc31c346ec8 (diff)
downloadgitlab-ce-b7c3da3b3457b54d7acbf040515f57b6b8974fc8.tar.gz
Add latest changes from gitlab-org/gitlab@13-8-stable-ee
-rw-r--r--spec/requests/api/projects_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/requests/api/projects_spec.rb b/spec/requests/api/projects_spec.rb
index 4acd0eea448..e3eb3649a1a 100644
--- a/spec/requests/api/projects_spec.rb
+++ b/spec/requests/api/projects_spec.rb
@@ -1687,7 +1687,7 @@ RSpec.describe API::Projects do
end
it 'returns a 404 error if not found' do
- get api('/projects/42', user)
+ get api("/projects/#{non_existing_record_id}", user)
expect(response).to have_gitlab_http_status(:not_found)
expect(json_response['message']).to eq('404 Project Not Found')
end
@@ -2048,7 +2048,7 @@ RSpec.describe API::Projects do
end
it 'returns a 404 error if not found' do
- get api('/projects/42/users', user)
+ get api("/projects/#{non_existing_record_id}/users", user)
expect(response).to have_gitlab_http_status(:not_found)
expect(json_response['message']).to eq('404 Project Not Found')
@@ -3177,7 +3177,7 @@ RSpec.describe API::Projects do
end
it 'fails if project to fork from does not exist' do
- post api('/projects/424242/fork', user)
+ post api("/projects/#{non_existing_record_id}/fork", user)
expect(response).to have_gitlab_http_status(:not_found)
expect(json_response['message']).to eq('404 Project Not Found')
@@ -3211,7 +3211,7 @@ RSpec.describe API::Projects do
end
it 'fails if trying to fork to non-existent namespace' do
- post api("/projects/#{project.id}/fork", user2), params: { namespace: 42424242 }
+ post api("/projects/#{project.id}/fork", user2), params: { namespace: non_existing_record_id }
expect(response).to have_gitlab_http_status(:not_found)
expect(json_response['message']).to eq('404 Namespace Not Found')