integration_test_helper.rb revision 5f579ebe7d026ae54bdfe295bb38e91a099b879d
require "test_helper"
# Transactional fixtures do not work with Selenium tests, because Capybara
# uses a separate server thread, which the transactions would be hidden
# from. We hence use DatabaseCleaner to truncate our test database.
# use webkit as driver for capybara
# Make the Capybara DSL available in all integration tests
# Stop ActiveRecord from wrapping tests in transactions
self.use_transactional_fixtures = false
teardown do
DatabaseCleaner.clean # Truncate the database
end
end