Skip to content

Instantly share code, notes, and snippets.

@brentertz
Created January 6, 2013 04:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brentertz/4465123 to your computer and use it in GitHub Desktop.
Save brentertz/4465123 to your computer and use it in GitHub Desktop.
database_cleaner alternative
config.around do |example|
ActiveRecord::Base.transaction do
example.run
raise ActiveRecord::Rollback
end
end
@kuroda
Copy link

kuroda commented Nov 21, 2013

@brentertz Great! You saved me.

@brentertz
Copy link
Author

Woohoo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment