I was having a rough time making the test database use transactions when trying out Padrino recently. I added this line to my gemspec:
# Gemfile
group :test do
# ... some gems
gem 'database_cleaner'
# ... some other gems
end
And then the following code to my spec_helper file and now the database runs transactionally as expected
Cheers!