93a44e135b
Adds frozen string to the following: * spec/bin/**/*.rb * spec/config/**/*.rb * spec/controllers/**/*.rb xref https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
23 lines
563 B
Ruby
23 lines
563 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
describe Admin::DashboardController do
|
|
describe '#index' do
|
|
context 'with pending_delete projects' do
|
|
render_views
|
|
|
|
it 'does not retrieve projects that are pending deletion' do
|
|
sign_in(create(:admin))
|
|
|
|
project = create(:project)
|
|
pending_delete_project = create(:project, pending_delete: true)
|
|
|
|
get :index
|
|
|
|
expect(response.body).to match(project.name)
|
|
expect(response.body).not_to match(pending_delete_project.name)
|
|
end
|
|
end
|
|
end
|
|
end
|