[rspec-users] RSpec fails testing on ActiveRecord
kashyap.kmbc at gmail.com
Tue May 29 15:54:51 UTC 2012
Is there a 'database.yml' config file in your app? It should be under "<your app folder>/config" folder. In that, you need to specify the adapter. As per the logs, looks like the adapter is not specified or else the config file is not loaded into the app in runtime.
On Tuesday 29 May 2012 at 9:19 PM, Frédéric Champreux wrote:
> 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
> /home/fred/.rvm/gems/ruby-1.9.3-p0 at 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 ?
> Posted via http://www.ruby-forum.com/.
> rspec-users mailing list
> rspec-users at rubyforge.org (mailto:rspec-users at rubyforge.org)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users