views:

40

answers:

0

First of all, I have to run "rake RAILS_ENV=test ..." to get the test suites to hit my test DB. Annoying but ok to live with.

However when I do so, I get a long stream of errors like so:

> rake RAILS_ENV=test -I test test:units
psql:/path/to/project/db/test_structure.sql:33: ERROR:  function "armor" already exists with same argument types
[and many more]

It looks like some DB definitions are getting unnecessarily reloaded. I can't find any mention of this on Google, so I was wondering whether others have seen this?

I am using a PostgreSQL database with the following in my environment.rb:

  config.active_record.schema_format = :sql

and using Rails 2.3.5 with rake 0.8.7.