debian-mirror-gitlab/spec/controllers/admin/cohorts_controller_spec.rb
2021-03-11 19:13:27 +05:30

17 lines
302 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(admin_users_path(tab: 'cohorts'))
end
end