From e687b9b6bd5495fd393ea7a5343e2a06c67a288a Mon Sep 17 00:00:00 2001 From: Paul Bob Date: Tue, 28 Nov 2023 16:03:25 +0200 Subject: [PATCH] try loading action --- spec/system/avo/actions_spec.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spec/system/avo/actions_spec.rb b/spec/system/avo/actions_spec.rb index 0bc9b8b9a6..b6a230ea25 100644 --- a/spec/system/avo/actions_spec.rb +++ b/spec/system/avo/actions_spec.rb @@ -151,8 +151,6 @@ describe "redirects when no confirmation" do it "redirects to hey page" do - original_dummy_action = Avo::Actions::Sub::DummyAction.dup - Avo::Actions::Sub::DummyAction.class_eval do self.no_confirmation = true @@ -169,7 +167,7 @@ def handle(**args) expect(page).to have_text "hey en" Avo::Actions::Sub.send(:remove_const, "DummyAction") - Avo::Actions::Sub.const_set("DummyAction", original_dummy_action) + load(Rails.root.join("app/avo/actions/sub/dummy_action.rb")) end end