debian-mirror-gitlab/spec/controllers/admin/cohorts_controller_spec.rb

18 lines
302 B
Ruby
Raw Normal View History

2020-11-24 15:15:51 +05:30
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Admin::CohortsController do
2021-03-11 19:13:27 +05:30
let(:user) { create(:admin) }
2020-11-24 15:15:51 +05:30
2021-03-11 19:13:27 +05:30
before do
sign_in(user)
2020-11-24 15:15:51 +05:30
end
2021-03-11 19:13:27 +05:30
it 'redirects to Overview->Users' do
get :index
2020-11-24 15:15:51 +05:30
2021-03-11 19:13:27 +05:30
expect(response).to redirect_to(admin_users_path(tab: 'cohorts'))
2020-11-24 15:15:51 +05:30
end
end