gitlab-org--gitlab-foss/spec/controllers/admin/cohorts_controller_spec.rb

17 lines
294 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Admin::CohortsController do
let(:user) { create(:admin) }
before do
sign_in(user)
end
it 'redirects to Overview->Users' do
get :index
expect(response).to redirect_to(cohorts_admin_users_path)
end
end