From 9fc5311ddc662097a92411890c4637b11f358e5f Mon Sep 17 00:00:00 2001 From: Kevin McConnell Date: Tue, 14 Jan 2025 14:10:24 +0000 Subject: [PATCH] Add simple controller test --- test/controllers/notifications_controller_test.rb | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/test/controllers/notifications_controller_test.rb b/test/controllers/notifications_controller_test.rb index 20b28201d..fc4c2bfee 100644 --- a/test/controllers/notifications_controller_test.rb +++ b/test/controllers/notifications_controller_test.rb @@ -1,7 +1,14 @@ require "test_helper" class NotificationsControllerTest < ActionDispatch::IntegrationTest - # test "the truth" do - # assert true - # end + setup do + sign_in_as :kevin + end + + test "index" do + get notifications_url + + assert_response :success + assert_select "div", text: /Layout is broken/ + end end