AlexVasilenko/forum — pull request #1 by AlexVasilenko (2014-03-30 09:04:58+00:00)
Title: Dev

Создал контроллер, все вроде бы как работает, но когда я начал создавать тесты для контроллера выводит ошибку:

/home/user/.rvm/gems/ruby-2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/connection_specification.rb:44:in `resolve_string_connection': test database is not configured (ActiveRecord::AdapterNotSpecified)
from /home/user/.rvm/gems/ruby-2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/connection_specification.rb:30:in `spec'
from /home/user/.rvm/gems/ruby-2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_handling.rb:39:in `establish_connection'
from /home/user/.rvm/gems/ruby-2.1.0/gems/activerecord-4.0.4/lib/active_record/railtie.rb:176:in `block (2 levels) in '
from /home/user/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.4/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
from /home/user/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.4/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
from /home/user/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.4/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
from /home/user/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.4/lib/active_support/lazy_load_hooks.rb:27:in `each'