Ruby on Rails: Cucumber: how to reset the db after each scenario?
        Posted  
        
            by DerNalia
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by DerNalia
        
        
        
        Published on 2010-06-15T23:27:21Z
        Indexed on 
            2010/06/15
            23:32 UTC
        
        
        Read the original article
        Hit count: 311
        
ruby-on-rails
|cucumber
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
© Stack Overflow or respective owner