1 # frozen_string_literal: true
5 class NotificationsControllerTest < ActionDispatch::IntegrationTest
8 { :path => "/notifications", :method => :get },
9 { :controller => "notifications", :action => "index" }
14 session_for(create(:user))
15 get notifications_path
17 assert_response :success
18 assert_template "index"
21 def test_index_unauthorized
22 get notifications_path
24 assert_redirected_to login_path(:referer => notifications_path)