config.cache_classes = false in test env to uncover a bug I missed. need to fix failing tests somehow
Oleg
committed Apr 30, 2011
commit 7a30c279ddd0258aea3c7ee4becd6b641dc7cb2e
Showing 3
changed files with
4 additions
and 4 deletions
config/environments/development.rb
+1
-1
| @@ | @@ -4,7 +4,7 @@ ComfortableMexicanSofa::Application.configure do |
| # In the development environment your application's code is reloaded on | |
| # every request. This slows down response time but is perfect for development | |
| # since you don't have to restart the webserver when you make code changes. | |
| - | config.cache_classes = true |
| + | config.cache_classes = false |
| # Log error messages when you accidentally call methods on nil. | |
| config.whiny_nils = true | |
config/environments/test.rb
+1
-1
| @@ | @@ -5,7 +5,7 @@ ComfortableMexicanSofa::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 |
| # Log error messages when you accidentally call methods on nil. | |
| config.whiny_nils = true | |
comfortable_mexican_sofa/engine.rb b/lib/comfortable_mexican_sofa/engine.rb
+2
-2
| @@ | @@ -7,8 +7,8 @@ require 'mime/types' |
| module ComfortableMexicanSofa | |
| class Engine < ::Rails::Engine | |
| - | config.after_initialize do |
| - | Dir.glob(File.expand_path('tags/*.rb', File.dirname(__FILE__))).each do |tag_path| |
| + | config.to_prepare do |
| + | Dir.glob(File.expand_path('tags/*.rb', File.dirname(__FILE__))).each do |tag_path| |
| require tag_path | |
| end | |
| end | |