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