Skip to content

Commit

Permalink
💅 Move `:enddoc: to the top of the file
Browse files Browse the repository at this point in the history
This way we don't need the other `:nodoc:` statements
  • Loading branch information
zzak committed Jun 19, 2023
1 parent 7942453 commit 49ff50f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions railties/lib/rails/test_help.rb
@@ -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 49ff50f

Please sign in to comment.