Skip to content

Commit

Permalink
try loading action
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob committed Nov 28, 2023
1 parent 2e7d8c5 commit e687b9b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spec/system/avo/actions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit e687b9b

Please sign in to comment.