diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-06 17:52:23 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-06 17:52:23 +0100 |
commit | 3824c588533f481011d2be19ff9476c001ffbee9 (patch) | |
tree | 96203d48ec3d8f54d69591d6b8616c9b4ac7a03b /spec | |
parent | 831a187d74791a34270ecdc94df62bcc86dedd03 (diff) |
Adding GNU Public license, adding home timeline, reblog/favourite counters
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/home_controller_spec.rb | 2 | ||||
-rw-r--r-- | spec/rails_helper.rb | 3 |
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 |