Skip to content

Commit

Permalink
Merge pull request #2678 from r7kamura/rails-root-glob
Browse files Browse the repository at this point in the history
Prefer `Pathname#glob` to `Dir.[]` at spec/rails_helper.rb template
  • Loading branch information
JonRowe committed May 18, 2023
2 parents 7cba3ca + 87254b5 commit fd5053d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -20,7 +20,7 @@
# directory. Alternatively, in the individual `*_spec.rb` files, manually
# require only the support files necessary.
#
# Dir[Rails.root.join('spec/support/**/*.rb')].sort.each { |f| require f }
# Rails.root.glob('spec/support/**/*.rb').sort.each { |f| require f }

<% if RSpec::Rails::FeatureCheck.has_active_record_migration? -%>
# Checks for pending migrations and applies them before tests are run.
Expand Down

0 comments on commit fd5053d

Please sign in to comment.