From 157708aeb8f564bb14b306ef379fbc4dbf8cca46 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Mon, 10 Nov 2025 12:55:11 -0500 Subject: [PATCH] test: Set up Current.account to get more tests passing this is hacky so I left a todo to come back and unwind this --- test/test_helper.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_helper.rb b/test/test_helper.rb index 7a1274f52..d3084157d 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -44,6 +44,12 @@ module ActiveSupport include ActiveJob::TestHelper include ActionTextTestHelper, CardTestHelper, ChangeTestHelper, SessionTestHelper + + setup do + # TODO:PLANB: this is hacky, we should sort through the `Current` dependencies and figure out + # how to set Current.user without needing both a session *and* an account + Current.account = accounts("37s") + end end end