Using spork with watchr and all that jazz... though still not feeling like the tests are "blazingly fast" (sigh)

This commit is contained in:
Dan Buch
2011-11-14 08:35:09 -05:00
parent 99b84ea0c9
commit d727621c46
7 changed files with 49 additions and 31 deletions

View File

@@ -50,5 +50,11 @@ module Gerbil
# Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.0'
if Rails.env.test?
initializer :after => :initialize_dependency_mechanism do
ActiveSupport::Dependencies.mechanism = :load
end
end
end
end

View File

@@ -5,7 +5,7 @@ Gerbil::Application.configure do
# test suite. You never need to work with it otherwise. Remember that
# your test database is "scratch space" for the test suite and is wiped
# and recreated between test runs. Don't rely on the data there!
config.cache_classes = true
config.cache_classes = false
# Configure static asset server for tests with Cache-Control for performance
config.serve_static_assets = true