diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 57c66cd8d..15181ff20 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -26,7 +26,7 @@ # If you are not using ActiveRecord, you can remove this line. ActiveRecord::Migration.maintain_test_schema! -Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f } +Rails.root.glob("spec/support/**/*.rb").each { |f| require f } RSpec.configure do |config| # Include Factory Girl syntax to simplify calls to factories