Rails Application With RSpec, Capybara, Jasmine, DatabaseCleaner
Database Cleaner is configured to use transactions for non-request
tests for speed but uses database truncation on request (acceptance) tests for compatibility with capybara's use of a separate ruby thread to run tests in.