summaryrefslogtreecommitdiff
path: root/spec/controllers/projects/usage_quotas_controller_spec.rb
blob: 6125ba13f967b7c6625325d2006e186ad2ee702b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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