do clean before each scenario so db doesn't get into borked state
This commit is contained in:
parent
c1e036d4f7
commit
fd74b79b61
1 changed files with 3 additions and 4 deletions
|
|
@ -42,12 +42,11 @@ Cucumber::Rails::World.use_transactional_fixtures = true
|
|||
require File.join(File.dirname(__FILE__), "..", "..", "spec", "helper_methods")
|
||||
include HelperMethods
|
||||
|
||||
Before do
|
||||
DatabaseCleaner.start
|
||||
end
|
||||
DatabaseCleaner.start
|
||||
|
||||
After do
|
||||
Before do
|
||||
DatabaseCleaner.clean
|
||||
DatabaseCleaner.start
|
||||
end
|
||||
|
||||
module Resque
|
||||
|
|
|
|||
Loading…
Reference in a new issue