From 284bff03050aa8cad152642baf91d4bdcab27225 Mon Sep 17 00:00:00 2001 From: Ulysse Buonomo Date: Thu, 10 Jul 2025 16:59:06 +0200 Subject: [PATCH] fix(test): propagate setup and teardown Fixes the undefined class variable error in tests. --- test/cases/fixtures_test.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/cases/fixtures_test.rb b/test/cases/fixtures_test.rb index faa5ca3c..86c44d62 100644 --- a/test/cases/fixtures_test.rb +++ b/test/cases/fixtures_test.rb @@ -43,10 +43,14 @@ def before_setup parrots_pirates_redefine parrots_treasures_redefine end + ensure + super end def teardown Arel::Table.engine = ActiveRecord::Base + ensure + super end # This replaces the same test that's been excluded from