Yan Pritzker
2006-Aug-02 14:59 UTC
[Rails] rake works but rake test:units fails, strange trace
Hi, When I run rake, everything works fine but when I run rake test:units I get an error apparently while it''s trying to create db tables saying the table already exists. I ran rake with trace to see the differences. It appears that rake test:units does db:schema:load twice, maybe that is the problem? Anyone know why this might be? Output of trace below Rake ** Invoke default (first_time) ** Invoke test (first_time) ** Execute test ** Invoke test:units (first_time) ** Invoke db:test:prepare (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:test:prepare ** Invoke db:test:clone (first_time) ** Invoke db:schema:dump (first_time) ** Invoke environment ** Execute db:schema:dump Rake test:units ** Invoke test:units (first_time) ** Invoke db:test:prepare (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:test:prepare ** Invoke db:test:clone (first_time) ** Invoke db:schema:dump (first_time) ** Invoke environment ** Execute db:schema:dump ** Execute db:test:clone ** Invoke db:schema:load (first_time) ** Invoke environment ** Execute db:schema:load