debian-mirror-gitlab/spec/controllers/projects/usage_quotas_controller_spec.rb

21 lines
552 B
Ruby
Raw Normal View History

2021-11-18 22:05:49 +05:30
# 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