2016-02-22 17:00:20 +02:00
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
RSpec.describe HomeController, type: :controller do
|
2016-02-25 01:17:01 +02:00
|
|
|
describe 'GET #index' do
|
2016-03-19 15:02:30 +02:00
|
|
|
it 'redirects to login page' do
|
2016-02-29 20:42:08 +02:00
|
|
|
get :index
|
2016-03-06 18:52:23 +02:00
|
|
|
expect(response).to redirect_to(new_user_session_path)
|
2016-02-29 20:42:08 +02:00
|
|
|
end
|
2016-02-25 01:17:01 +02:00
|
|
|
end
|
2016-02-22 17:00:20 +02:00
|
|
|
end
|