From 3d064c737e8448880e6180aeddc59000a01aa6a8 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 7 Apr 2020 06:09:25 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/requests/api/internal/base_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/requests/api/internal') diff --git a/spec/requests/api/internal/base_spec.rb b/spec/requests/api/internal/base_spec.rb index 575d695ef54..09689c5794d 100644 --- a/spec/requests/api/internal/base_spec.rb +++ b/spec/requests/api/internal/base_spec.rb @@ -325,12 +325,12 @@ describe API::Internal::Base do shared_examples 'snippets with disabled feature flag' do context 'when feature flag :version_snippets is disabled' do - it 'returns 404' do + it 'returns 401' do stub_feature_flags(version_snippets: false) subject - expect(response).to have_gitlab_http_status(:not_found) + expect(response).to have_gitlab_http_status(:unauthorized) end end end -- cgit v1.2.1