Próbuję uruchomić szyny (4.1.2
) konsoliPierwsze config.eager_load jest ustawiony na zero, podczas próby uruchomienia ceowniki w teście
rails c RAILS_ENV=test
A ja dostaję to:
> config.eager_load is set to nil. Please update your
> config/environments/*.rb files accordingly:
>
> * development - set it to false * test - set it to false (unless
> you use a tool that preloads your test environment) * production -
> set it to true
>
> /Users/xxxxxx/.rvm/gems/ruby-2.2.2/gems/activerecord-4.1.12/lib/active_record/connection_adapters/connection_specification.rb:257:in
> `resolve_symbol_connection': 'RAILS_ENV=test' database is not
> configured. Available: ["development", "test", "production"]
> (ActiveRecord::AdapterNotSpecified)
Jednak w moim test.rb
mam config.eager_load = false
i mój database.yml
jest ok (Pobiegłem rake db:schema:load RAILS_ENV=test
bez problemów.
Jak mogę rozwiązać ten problem?
Dzięki! Mi to pasuje. –