Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💅 Move `:enddoc: to the top of the file #48516

Merged
merged 1 commit into from
Jun 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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