Skip to content

Commit

Permalink
Add comment about ActiveSupport::Dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ericproulx committed Jun 20, 2024
1 parent 598b36a commit 0ff0dbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions spec/integration/rails/mounting_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
require 'rails'
require 'action_controller/railtie'

# https://github.com/rails/rails/issues/51784
# same error as described if not redefining the following
ActiveSupport::Dependencies.autoload_paths = []
ActiveSupport::Dependencies.autoload_once_paths = []

Expand Down
3 changes: 2 additions & 1 deletion spec/integration/rails/railtie_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
subject { test_app.deprecators[:grape] }

let(:test_app) do

# https://github.com/rails/rails/issues/51784
# same error as described if not redefining the following
ActiveSupport::Dependencies.autoload_paths = []
ActiveSupport::Dependencies.autoload_once_paths = []

Expand Down

0 comments on commit 0ff0dbb

Please sign in to comment.