commondream/tconsole — Issue #48: Doesn't load database.yml
Author: gma
Created: 2012-03-01 20:36:47+00:00
State: open

Any thoughts on what could be causing this?

```
tconsole> all
Running tests...

/Users/graham/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:45:in `resolve_hash_connection': database configuration does not specify adapter (ActiveRecord::AdapterNotSpecified)
from /Users/graham/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:39:in `resolve_string_connection'
from /Users/graham/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:23:in `spec'
from /Users/graham/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:127:in `establish_connection'
from /Users/graham/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/tconsole-1.1.1/lib/tconsole/config.rb:161:in `block in configure'
from /Users/graham/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/tconsole-1.1.1/lib/tconsole/config.rb:86:in `call'
from /Users/graham/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/tconsole-1.1.1/lib/tconsole/config.rb:86:in `before_test_run!'
from /Users/graham/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/tconsole-1.1.1/lib/tconsole/server.rb:136:in `block (2 levels) in run_tests'
from /Users/graham/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/tconsole-1.1.1/lib/tconsole/server.rb:97:in `call'
from /Users/graham/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/tconsole-1.1.1/lib/tconsole/server.rb:97:in `block in run_in_fork'
from /Users/graham/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/tconsole-1.1.1/lib/tconsole/server.rb:94:in `fork'
from /Users/graham/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/tconsole-1.1.1/lib/tconsole/server.rb:94:in `run_in_fork'
from /Users/graham/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/tconsole-1.1.1/lib/tconsole/server.rb:121:in `block in run_tests'
from /Users/graham/.rbenv/versions/1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310:in `realtime'
from /Users/graham/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/tconsole-1.1.1/lib/tconsole/server.rb:120:in `run_tests'
from /Users/graham/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/tconsole-1.1.1/lib/tconsole/server.rb:195:in `run_file_set'
from /Users/graham/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/tconsole-1.1.1/lib/tconsole/server.rb:15:in `handle'
from /Users/graham/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/tconsole-1.1.1/lib/tconsole.rb:62:in `block in run'
from /Users/graham/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/tconsole-1.1.1/lib/tconsole.rb:53:in `fork'
from /Users/graham/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/tconsole-1.1.1/lib/tconsole.rb:53:in `run'
from /Users/graham/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/tconsole-1.1.1/bin/tconsole:5:in `'
from /Users/graham/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/bin/tconsole:19:in `load'
from /Users/graham/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/bin/tconsole:19:in `

'

Test time (including load): 1.300522s
```

The "non production" part of my `Gemfile` look like this:

```
group :development do
gem 'guard-coffeescript'
gem 'guard-ctags-bundler'
gem 'guard-livereload'
gem 'guard-spin'
gem 'rb-readline'
gem 'ruby-debug19', :require => 'ruby-debug'
end

group :development, :test do
gem 'database_cleaner'
gem 'factory_girl_rails'
gem 'guard-minitest', :git => 'git://github.com/gma/guard-minitest.git'
gem 'minitest-rails',
:git => 'git://github.com/rawongithub/minitest-rails.git',
:branch => 'gemspec'
gem 'mocha'
gem 'tconsole'
gem 'turn'
end
```