Commit f474222d authored by Stan Hu's avatar Stan Hu

Merge branch '341830-remove-settings-search-from-project-storage-usage' into 'master'

Hide settings search from project storage usage

See merge request gitlab-org/gitlab!71290
parents 7011943e 9dd6b356
......@@ -9,6 +9,7 @@ class Projects::UsageQuotasController < Projects::ApplicationController
feature_category :utilization
def index
@hide_search_settings = true
@storage_app_data = {
project_path: @project.full_path,
usage_quotas_help_page_path: help_page_path('user/usage_quotas'),
......
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Projects::UsageQuotasController do
let_it_be(:user) { create(:user) }
let_it_be(:project) { create(:project, namespace: user.namespace) }
describe 'GET #index' do
render_views
it 'does not render search settings partial' do
sign_in(user)
get(:index, params: { namespace_id: user.namespace, project_id: project })
expect(response).to render_template('index')
expect(response).not_to render_template('shared/search_settings')
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment