diff --git a/lib/file_store/base_store.rb b/lib/file_store/base_store.rb index ba354efb1cf..0c4c14d2be5 100644 --- a/lib/file_store/base_store.rb +++ b/lib/file_store/base_store.rb @@ -31,13 +31,7 @@ module FileStore end def upload_path - if ENV['RAILS_ENV'] != "test" || !ENV['TEST_ENV_NUMBER'] - return File.join("uploads", RailsMultisite::ConnectionManagement.current_db) - end - - # Parallel spec system - n = ENV['TEST_ENV_NUMBER'].presence || '1' - File.join("uploads", RailsMultisite::ConnectionManagement.current_db, n) + File.join("uploads", RailsMultisite::ConnectionManagement.current_db) end def has_been_uploaded?(url)