Enable Rubocop Rails/FilePath (#23854)
This commit is contained in:
parent
c97b611b6b
commit
1fe04f740a
6 changed files with 10 additions and 72 deletions
|
@ -12,7 +12,7 @@ require 'paperclip/matchers'
|
|||
require 'capybara/rspec'
|
||||
require 'chewy/rspec'
|
||||
|
||||
Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
|
||||
Dir[Rails.root.join('spec', 'support', '**', '*.rb')].each { |f| require f }
|
||||
|
||||
ActiveRecord::Migration.maintain_test_schema!
|
||||
WebMock.disable_net_connect!(allow: Chewy.settings[:host])
|
||||
|
@ -56,7 +56,7 @@ module SignedRequestHelpers
|
|||
end
|
||||
|
||||
RSpec.configure do |config|
|
||||
config.fixture_path = "#{Rails.root}/spec/fixtures"
|
||||
config.fixture_path = Rails.root.join('spec', 'fixtures')
|
||||
config.use_transactional_fixtures = true
|
||||
config.order = 'random'
|
||||
config.infer_spec_type_from_file_location!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue