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!

ReversibleData for Testing

ReversibleData is a fairly new gem built to solve one of the problems associated with testing AR-backed models - Managing a database (and associated tables) and models. It handles creating / dropping tables and creating / removing models (e.g. so a User model may only exist in the scope of a test). It’s like migrations but a lot simpler / scoped to make testing easier.

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