test/rails_app/config/environments/test.rb in milia-0.3.2 vs test/rails_app/config/environments/test.rb in milia-0.3.7
- old
+ new
@@ -19,21 +19,38 @@
config.action_controller.perform_caching = false
# Raise exceptions instead of rendering exception templates
config.action_dispatch.show_exceptions = false
+ # Print deprecation notices to the Rails logger
+ config.active_support.deprecation = :log
+
+# config.logger = Logger.new(STDOUT)
+ config.log_level = :debug
+ config.assets.logger = nil
+ config.active_record.logger = Logger.new(STDOUT)
+
# Disable request forgery protection in test environment
config.action_controller.allow_forgery_protection = false
# Tell Action Mailer not to deliver emails to the real world.
# The :test delivery method accumulates sent emails in the
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
+ config.action_mailer.default_url_options = { :host => 'localhost:3000' }
+
+
# Use SQL instead of Active Record's schema dumper when creating the test database.
# This is necessary if your schema can't be completely dumped by the schema dumper,
# like if you have constraints or database-specific column types
# config.active_record.schema_format = :sql
# Print deprecation notices to the stderr
config.active_support.deprecation = :stderr
+
+ # See everything in the log (default is :debug)
+# config.log_level = :debug
+# config.assets.logger = nil
+# config.active_record.logger = Logger.new(STDOUT)
+
end