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