You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
metu.life/spec/controllers/home_controller_spec.rb

10 lines
235 B

require 'rails_helper'
RSpec.describe HomeController, type: :controller do
describe 'GET #index' do
it 'redirects to login page' do
get :index
expect(response).to redirect_to(new_user_session_path)
end
end
end