Skip to content

Commit

Permalink
Fix Ruby tests by replacing ActionView::PathSet#<< with `ActionView…
Browse files Browse the repository at this point in the history
…::LookupContext#append_view_path`

Check this Pull Request for more details: rails/rails#45957
  • Loading branch information
marcoroth committed Sep 24, 2024
1 parent 038780a commit 9807f07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/reflex_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def connection.env

reflex_data = StimulusReflex::ReflexData.new(url: "https://test.stimulusreflex.com", id: "666", version: StimulusReflex::VERSION)
@reflex = StimulusReflex::Reflex.new(subscribe, reflex_data: reflex_data)
@reflex.controller_class.view_paths << Rails.root.join("test/views")
@reflex.controller_class.append_view_path(Rails.root.join("test/views"))
end

test "render plain" do
Expand Down

0 comments on commit 9807f07

Please sign in to comment.