Fix Rails/RootPathnameMethods cop (#31582)
This commit is contained in:
@@ -44,7 +44,7 @@ require 'chewy/rspec'
|
||||
require 'email_spec/rspec'
|
||||
require 'test_prof/recipes/rspec/before_all'
|
||||
|
||||
Dir[Rails.root.join('spec', 'support', '**', '*.rb')].each { |f| require f }
|
||||
Rails.root.glob('spec/support/**/*.rb').each { |f| require f }
|
||||
|
||||
ActiveRecord::Migration.maintain_test_schema!
|
||||
WebMock.disable_net_connect!(
|
||||
|
||||
@@ -28,7 +28,7 @@ RSpec.configure do |config|
|
||||
end
|
||||
|
||||
config.after :suite do
|
||||
FileUtils.rm_rf(Dir[Rails.root.join('spec', 'test_files')])
|
||||
FileUtils.rm_rf(Rails.root.glob('spec/test_files'))
|
||||
end
|
||||
|
||||
# Use the GitHub Annotations formatter for CI
|
||||
|
||||
Reference in New Issue
Block a user