Displaying 2 results from an estimated 2 matches for "test_product".
Did you mean:
less_product
2006 Mar 04
2
unittest, not loading yml data
...e: Pragmatic Project Automation
description: How to automate your project
image_url: /images/sk_auto_small.jpg
price: 29.95
date_available: 2004-07-01 00:00:00
and I was trying to use @products and @version_control_book in my
product_test.rb script
here is my test_product.rb
require File.dirname(__FILE__) + ''/../test_helper''
class ProductTest < Test::Unit::TestCase
fixtures :products
def setup
@product = Product.find(1)
end
def test_load_yml
assert_equal nil, @products
assert_equal nil, @version_control_...
2007 Oct 12
1
database configuration specifies nonexistent postgresql adapter
...ly
2. Edited my Database.yml
development:
adapter: postgresql
database: test_development
username: postgres
password: xxx
host: localhost
test:
adapter: postgresql
database: test_test
username: postgres
password: xxx
host: localhost
production:
adapter: postgres
database: test_production
username: root
password: xxx
host: localhost
I had earlier created an appropriate migration file
then rake db:migrate
Result :
rake aborted!
database configuration specifies nonexistent postgresql adapter
I then use gem install postgres-pr
Then rake db:migrate
Result : same error m...