Skip to content

Commit

Permalink
Merge pull request rails#48516 from zzak/cherry-pick-255d3cd
Browse files Browse the repository at this point in the history
💅 Move `:enddoc: to the top of the file
  • Loading branch information
zzak authored Jun 19, 2023
2 parents 7942453 + 49ff50f commit e91b197
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions railties/lib/rails/test_help.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

# :enddoc:

# Make double-sure the RAILS_ENV is not set to production,
# so fixtures aren't loaded into that environment
abort("Abort testing: Your Rails environment is running in production mode!") if Rails.env.production?
Expand Down Expand Up @@ -37,17 +39,15 @@
end
end

# :enddoc:

ActiveSupport.on_load(:action_controller_test_case) do
def before_setup # :nodoc:
def before_setup
@routes = Rails.application.routes
super
end
end

ActiveSupport.on_load(:action_dispatch_integration_test) do
def before_setup # :nodoc:
def before_setup
@routes = Rails.application.routes
super
end
Expand Down

0 comments on commit e91b197

Please sign in to comment.