about summary refs log tree commit diff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/controllers/home_controller_spec.rb2
-rw-r--r--spec/rails_helper.rb3
2 files changed, 4 insertions, 1 deletions
diff --git a/spec/controllers/home_controller_spec.rb b/spec/controllers/home_controller_spec.rb
index 7eaa43df7..cf85c5f79 100644
--- a/spec/controllers/home_controller_spec.rb
+++ b/spec/controllers/home_controller_spec.rb
@@ -4,7 +4,7 @@ RSpec.describe HomeController, type: :controller do
   describe 'GET #index' do
     it 'returns 200' do
       get :index
-      expect(response).to have_http_status(:success)
+      expect(response).to redirect_to(new_user_session_path)
     end
   end
 end
diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb
index cb8088061..52c76d0da 100644
--- a/spec/rails_helper.rb
+++ b/spec/rails_helper.rb
@@ -15,4 +15,7 @@ RSpec.configure do |config|
   config.use_transactional_fixtures = true
   config.infer_spec_type_from_file_location!
   config.filter_rails_from_backtrace!
+
+  config.include Devise::TestHelpers, type: :controller
+  config.include Devise::TestHelpers, type: :view
 end