lib/diesel/testing/application.rb in diesel-0.1.2 vs lib/diesel/testing/application.rb in diesel-0.1.3
- old
+ new
@@ -19,9 +19,18 @@
config.action_dispatch.show_exceptions = false
config.action_controller.allow_forgery_protection = false
config.action_mailer.delivery_method = :test
config.active_support.deprecation = :stderr
config.secret_token = "DIESEL" * 5 # so diesel
+
+ def require_environment!
+ initialize!
+ end
+
+ def initialize!
+ FileUtils.mkdir_p(Rails.root.join("db").to_s)
+ super
+ end
end
end
end