How to check gem that changes ActiveRecord with different DBs?

I created a gem that adds a new class to the ActiveRecord :: Base class. I have tested the gem manually (creating a rails app) and it works, but I would like to create an automatic test battery to test it correctly. Is there any gem that I can use as a reference?

Thank!!

Sergio.

+3


source to share


1 answer


From the Travis config for Rails, it runs multiple times against each DB:

https://github.com/rails/rails/blob/master/ci/travis.rb



Rough but effective :)

+1


source







All Articles