From d5e22ced248f99b82202d9f1731daaa219fba0fc Mon Sep 17 00:00:00 2001 From: Jarrett Lusso Date: Tue, 13 Feb 2024 02:47:21 -0500 Subject: [PATCH] Fixed system test bug with session being nil --- test/system/queries_test.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/system/queries_test.rb b/test/system/queries_test.rb index 986dcc3..eab0d41 100644 --- a/test/system/queries_test.rb +++ b/test/system/queries_test.rb @@ -14,6 +14,9 @@ class QueriesTest < ApplicationSystemTestCase test "should destroy Query" do visit root_path create_query + # need to call twice since the session doesn't get created until it's been + # set at least once in tests. we set it with the type after creating. + create_query click_on "Remove", match: :first accept_alert assert_current_path root_path