debian-mirror-gitlab/spec/controllers/admin/cohorts_controller_spec.rb
2021-06-08 01:23:25 +05:30

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