Forum: RSpec RSpec fails testing on ActiveRecord

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2adfeded0954484efef1e804dd14e216?d=identicon&s=25 Frédéric Champreux (fchampreux)
on 2012-05-29 17:49
Attachment: Gemfile (514 Bytes)
Attachment: database.yml (103 Bytes)
Hi,

I'm new to RoR, and following the RoR 3.2 Tutorial from Michael Hartl.

When it comes to execute testing (chap. 3.2.1), RSpec returns a hundred
of errors starting with this one (and all looking the same more or
less):

/home/fred/.rvm/gems/ruby-1.9.3-p0@ODQ/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/connection_specification.rb:45:in
`resolve_hash_connection': database configuration does not specify
adapter (ActiveRecord::AdapterNotSpecified)

My DEV database is PostgreSQL and looks to work fine.

Can some help me to understand what's wrong and solve it ?

Thanks.
This topic is locked and can not be replied to.