I’ve got a test suite that runs fine from the command line but fails from rake. We’ve got a database table in our app that causes db:test:clone to fail. From the command line, db:test:clone_structure works ok, so I tried to override db:test:clone in the Rakefile. When I ‘rake test’, the unit tests run successfully, but the integration tests all fail (they all run successfully from the command line). I’ll copy the Rakefile below. If anybody’s got any ideas about what I might be doing wrong, I’d really appreciate hearing them.
======== Rakefile =========
require(File.join(File.dirname(FILE), ‘config’, ‘boot’))
don’t clone the test database; use clone_structure
so Rake doesn’t abort on the fulltext index
namespace :db do
namespace :test do
task :clone do