Ruby on Rails: Cucumber: how to reset the db after each scenario?
- by DerNalia
So, I have this:
Before do
task :build_all do
[ :debug, :release ].each do |t|
$build_type = t
Rake::Task["db:test:prepare"].reenable
Rake::Task["db:test:prepare"].invoke
end
end
end
But my data remains in the project_test db when my tests are done running
Ive also tried
db:test:purge
and
db:test:reset