diff options
Diffstat (limited to 'spec/support/test_env.rb')
-rw-r--r-- | spec/support/test_env.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/spec/support/test_env.rb b/spec/support/test_env.rb index 78be23bd853..b63df38187c 100644 --- a/spec/support/test_env.rb +++ b/spec/support/test_env.rb @@ -170,17 +170,11 @@ module TestEnv # Otherwise they'd be created by the first test, often timing out and # causing a transient test failure def warm_asset_cache - return if warm_asset_cache? return unless defined?(Capybara) Capybara.current_session.driver.visit '/' end - def warm_asset_cache? - cache = Rails.root.join(*%w(tmp cache assets test)) - Dir.exist?(cache) && Dir.entries(cache).length > 2 - end - private def factory_repo_path |