diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-01 15:07:45 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-01 15:07:45 +0000 |
commit | 1219a9dce91f4edbc135dfc08299b4122b4825a8 (patch) | |
tree | e7d12a55d75a2d56e60d9527bef3724e3578866d /spec/lib/api/helpers_spec.rb | |
parent | 1a0d6dbdc2ac3047f4953a359ef27ba6e26074ae (diff) | |
download | gitlab-ce-1219a9dce91f4edbc135dfc08299b4122b4825a8.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/api/helpers_spec.rb')
-rw-r--r-- | spec/lib/api/helpers_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/api/helpers_spec.rb b/spec/lib/api/helpers_spec.rb index 9980f4d8e23..3595d06a184 100644 --- a/spec/lib/api/helpers_spec.rb +++ b/spec/lib/api/helpers_spec.rb @@ -22,7 +22,7 @@ describe API::Helpers do context 'when ID is used as an argument' do let(:existing_id) { project.id } - let(:non_existing_id) { (Project.maximum(:id) || 0) + 1 } + let(:non_existing_id) { non_existing_record_id } it_behaves_like 'project finder' end @@ -66,7 +66,7 @@ describe API::Helpers do context 'when ID is used as an argument' do let(:existing_id) { namespace.id } - let(:non_existing_id) { 9999 } + let(:non_existing_id) { non_existing_record_id } it_behaves_like 'namespace finder' end |