[rspec-users] RSpec fails testing on ActiveRecord

2012-05-29 Thread Frédéric Champreux
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_r

Re: [rspec-users] RSpec fails testing on ActiveRecord

2012-05-29 Thread Kashyap KMBC
Is there a 'database.yml' config file in your app? It should be under "/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. -- Kashyap KMBC On Tuesday 29 May 2012

Re: [rspec-users] RSpec fails testing on ActiveRecord

2012-05-29 Thread Todd Sedano
You'll need to create a test database in postgres, and then modify your database.yml file to reference it. # PostgreSQL 8.4 development: adapter: postgresql encoding: unicode database: ODQ_APP pool: 5 test: adapter: postgresql encoding: unicode database: ODQ_APP_TEST pool: 5 To