Skip to content

Commit 453bf6a

Browse files
authored
Update rails_helper.rb template
The following change follows best practices of Rails.root.join and avoids linting errors when uncommented. See also http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Rails/FilePath
1 parent 14357eb commit 453bf6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/rspec/install/templates/spec/rails_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# directory. Alternatively, in the individual `*_spec.rb` files, manually
2121
# require only the support files necessary.
2222
#
23-
# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
23+
# Dir[Rails.root.join('spec', 'support', '**', '*.rb')].each { |f| require f }
2424

2525
<% if RSpec::Rails::FeatureCheck.can_maintain_test_schema? -%>
2626
# Checks for pending migrations and applies them before tests are run.

0 commit comments

Comments
 (0)