# Dumb rake test:functionals question

**URL:** <https://www.ruby-forum.com/t/dumb-rake-test-functionals-question/138822>\
**Category:** Rails\
**Created:** [May 28, 2008, 3:20am UTC](https://www.ruby-forum.com/t/dumb-rake-test-functionals-question/138822 "2008-05-28T03:20:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![craigrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c2a13f/32.png) [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Post date:** [May 28, 2008, 3:20am UTC](https://www.ruby-forum.com/t/dumb-rake-test-functionals-question/138822/1 "2008-05-28T03:20:31Z")

</div>

I have all my test/functionals/\*\_test.rb in order and they work fine run  
by themselves…so I went for the whole enchilada.

$ rake test:functionals  
(in /home/craig/svn-new/th-db/branches/phase5)  
dropdb: could not connect to database postgres: FATAL: database  
“postgres” does not exist  
createdb: could not connect to database postgres: FATAL: database  
“postgres” does not exist  
NOTICE: CREATE TABLE will create implicit sequence “assessments\_id\_seq”  
for “serial” column “assessments.id”  
\<\<\< some snippage \>\>\>  
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index  
“case\_managers\_pkey” for table “case\_managers”  
rake aborted!  
PGError: ERROR: relation “case\_managers\_id\_seq” already exists  
: CREATE TABLE case\_managers (“id” serial primary key, “first\_name”  
character varying(25) DEFAULT NULL, “last\_name” character varying(25)  
NOT NULL, “clinic\_name” character varying(30) DEFAULT NULL,  
“middle\_initial” character varying(1) DEFAULT NULL, “clinic\_id” integer  
DEFAULT NULL, “middle\_name” character varying(20) DEFAULT NULL,  
“lock\_version” integer DEFAULT 0)

OK - so I’m wondering…

1. Why does it try to drop the db first?

2. Why does it try to use the user ‘postgres’ when that isn’t the  
user specified in database.yml for either test, devel or prod?

3. How do I find out what the processes are for rake test:functionals?

4. Can these processes be modified?

5. I put ActiveRecord::Base.configurations[:fixtures\_load\_order] = [  
:clients,  
:case\_managers,  
:and\_on\_and\_on  
] into config/environments/test.rb but I can’t tell that it makes  
a difference…is this the wrong place?

I promise I have tried to google this info but haven’t had much luck  
beyond simple descriptions of the command itself.

Craig
