Commit 9dd6b356 authored by Ammar Alakkad's avatar Ammar Alakkad

Hide settings search from project storage usage

parent 81f1b5f4
......@@ -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