diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-06-14 09:59:21 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-06-14 09:59:21 +0000 |
commit | 17378152bf63540baba75ad4286c8604e360c34f (patch) | |
tree | 586c88782423405448c79275e41cc5c29273b9c7 /test/ui | |
parent | b29288c50a85cb1910d67717fc349878a7b27541 (diff) | |
download | redmine-17378152bf63540baba75ad4286c8604e360c34f.tar.gz redmine-17378152bf63540baba75ad4286c8604e360c34f.zip |
use database_cleaner (#12822)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11974 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/ui')
-rw-r--r-- | test/ui/base.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ui/base.rb b/test/ui/base.rb index 733ddab57..505c13ed9 100644 --- a/test/ui/base.rb +++ b/test/ui/base.rb @@ -30,6 +30,8 @@ Capybara.register_driver :selenium do |app| Capybara::Selenium::Driver.new(app, :browser => :remote) end +DatabaseCleaner.strategy = :truncation + module Redmine module UiTest # Base class for UI tests @@ -60,6 +62,7 @@ module Redmine teardown do Capybara.reset_sessions! # Forget the (simulated) browser state Capybara.use_default_driver # Revert Capybara.current_driver to Capybara.default_driver + DatabaseCleaner.clean end end end |