# dumb rake test:functionals question

**URL:** <https://discuss.rubyonrails.org/t/dumb-rake-test-functionals-question/29886>\
**Category:** rubyonrails-talk\
**Created:** [May 28, 2008, 1:19am UTC](https://discuss.rubyonrails.org/t/dumb-rake-test-functionals-question/29886 "2008-05-28T01:19:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Craig\_White2](https://avatars.discourse-cdn.com/v4/letter/c/76d3ee/32.png) [@Craig\_White2](https://discuss.rubyonrails.org/u/Craig_White2)\
**Post date:** [May 28, 2008, 1:19am UTC](https://discuss.rubyonrails.org/t/dumb-rake-test-functionals-question/29886/1 "2008-05-28T01:19:53Z")

</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 &nbsp;&nbsp;&nbsp;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] = [&nbsp;&nbsp;&nbsp;:clients, &nbsp;&nbsp;&nbsp;:case\_managers, &nbsp;&nbsp;&nbsp;:and\_on\_and\_on &nbsp;&nbsp;&nbsp;] into config/environments/test.rb but I can't tell that it makes &nbsp;&nbsp;&nbsp;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
