lib/diesel/testing/application.rb in diesel-0.1.1 vs lib/diesel/testing/application.rb in diesel-0.1.2
- old
+ new
@@ -5,10 +5,13 @@
APP_ROOT = File.expand_path('..', __FILE__).freeze
class Application < Rails::Application
config.encoding = "utf-8"
config.action_mailer.default_url_options = { :host => 'localhost' }
- config.paths.config.database = "#{APP_ROOT}/database.yml"
+ config.paths.config.database = "#{APP_ROOT}/config/database.yml"
+ config.paths.config.routes << "#{APP_ROOT}/config/routes.rb"
+ config.paths.app.controllers << "#{APP_ROOT}/app/controllers"
+ config.paths.app.views << "#{APP_ROOT}/app/views"
config.paths.log = "tmp/log"
config.cache_classes = true
config.whiny_nils = true
config.consider_all_requests_local = true
config.action_controller.perform_caching = false