Skip to content

Commit

Permalink
Use 'Rails.root.join' in rails_helper (#2640)
Browse files Browse the repository at this point in the history
Use 'Rails.root.join' in rails_helper template
  • Loading branch information
masato-bkn committed Nov 22, 2022
1 parent 2eba2c4 commit 0dcce14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generators/rspec/install/templates/spec/rails_helper.rb
Expand Up @@ -34,7 +34,7 @@
RSpec.configure do |config|
<% if RSpec::Rails::FeatureCheck.has_active_record? -%>
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
config.fixture_path = "#{::Rails.root}/spec/fixtures"
config.fixture_path = Rails.root.join('spec', 'fixtures')

# If you're not using ActiveRecord, or you'd prefer not to run each of your
# examples within a transaction, remove the following line or assign false
Expand All @@ -52,7 +52,7 @@
# note if you'd prefer not to run each example within a transaction, you
# should set use_transactional_fixtures to false.
#
# config.fixture_path = "#{::Rails.root}/spec/fixtures"
# config.fixture_path = Rails.root.join('spec', 'fixtures')
# config.use_transactional_fixtures = true
<% end -%>
Expand Down

0 comments on commit 0dcce14

Please sign in to comment.