|
|
@ -2,9 +2,9 @@ require 'rails_helper' |
|
|
|
|
|
|
|
|
|
|
|
RSpec.describe HomeController, type: :controller do |
|
|
|
RSpec.describe HomeController, type: :controller do |
|
|
|
describe 'GET #index' do |
|
|
|
describe 'GET #index' do |
|
|
|
it 'redirects to login page' do |
|
|
|
it 'redirects to about page' do |
|
|
|
get :index |
|
|
|
get :index |
|
|
|
expect(response).to redirect_to(new_user_session_path) |
|
|
|
expect(response).to redirect_to(about_path) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|