3 ms·
This looks very nice! I have something like this for my own projects, and my favorite piece is having detailed tests that I don't have to re-write every time:
by pjungwir 9y ago
This looks very nice!
I have something like this for my own projects, and my favorite piece is having detailed tests that I don't have to re-write every time: tests for Devise, tests for Stripe subscriptions, tests for many-to-many users and accounts, etc. I see this project has the same, which I really like.
I don't know why Devise doesn't have a generator to write all those tests for you, just like it will give you some starting views. Of course they won't match your app perfectly, but having the failures is helpful too, and probably it would be less effort to adjust them than to write new ones from scratch.
The idea isn't to "test the library"---Devise should have its own internal tests too---but to make sure that the features work as expected with your own configuration and customizations.
The other gem where a free battery of tests would really save time is Spree. (Maybe that exists; I don't know yet.)