search for: scoot_test

Displaying 1 result from an estimated 1 matches for "scoot_test".

Did you mean: root_test
2006 Feb 08
8
Strategies for Unit testing 2 databases
...applying this: Project.establish_connection(:test_group) (where :test_group is a database connection defined in database.yml) at various locations within the test itself, and test_helper.rb... but my unit is failing with this error: ActiveRecord::StatementInvalid: Mysql::Error: Table ''scoot_test.projects'' doesn''t exist: DELETE FROM projects (and scoot_test is the ''main'' database, but projects should be a table in the ''secondary'' database) So, any advice on how I might be able to get this to work? Thanks, Mike