Closed sachin21 closed 8 years ago
Thanks for your PR 😃
I think this can be implemented with less codes. And you should use DatabaseRewinder::Compatibility module.
P.S. cleaning
instead of clearing
in your commit message and PR title.
@deeeki Thank you for the review! I fixed it. 😄 Could you re-review my changes?
Good 👍 Thank you!
Thank you, too!
This pull request is a feature implement. I added clearing method. The reason for the added is simple. database_cleaner have a cleaning method. so We have to make DatabaseRewinder be compatible with DatabaseCleaner. because DatabaseCleaner class should be replaceable to DatabaseRewinder. FYI
So I added claering method, wrote a test for clearing method and I tested on my product.
Testing
My DatabaseRewinder's configurations is
So I executed
rspec spec
on my product then output this:👯 It was successfully executed.