RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Using RSpec Nested Transactions to speed up tests touching the database

This article explains how to speed up some tests touching the database by using nested transactions. Specially useful for those running Sequel and PostgreSQL (or other server supporting savepoints) and testing with RSpec as the rspec_nested_transactions gem I released a few hours ago would help a lot.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in