Forum: Ruby on Rails config.cache_classes true or false in test environment?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Tsvetelina B. (Guest)
on 2012-06-27 17:14
(Received via mailing list)
Hello, since two days I have problem with a scenario that started to
with the error that there is a missing link. I narrowed the problem to
config/environments/test.rb  and config.cache_classes and I change the
value now the scenario is passing with config.cache_classes = true. Here
my full test.rb:

RbpCm::Application.configure do

  config.action_mailer.default_url_options = { :host => PATH_TO_USE }

  config.action_mailer.delivery_method = :test

  config.cache_classes = true

  config.whiny_nils = true

  config.consider_all_requests_local       = true
  config.action_view.debug_rjs             = true
  config.action_controller.perform_caching = false

  config.log_level = :debug

  config.action_mailer.raise_delivery_errors = false

  config.active_support.deprecation = :log

  config.action_dispatch.best_standards_support = :builtin


I looked in google about config.cache_classes and I understood that if I
set it to false then my objects will be reloaded on every request. I
that capybara wants this to be set to true. I am using cucumber and
capybara, rails 3.0.9 and ruby 1.9.2-p290
Can you tell me what are the proper settings for test.rb and for
This topic is locked and can not be replied to.