Setup ActiveRecord model tests in RSpec which don't depend on Rails
Sometimes when we build a gem that depends on ActiveRecord, we want to set up RSpec to load ActiveRecord and some database migration to be ready for our integration tests.
https://dev.to/samnang/setup-activerecord-tests-in-rspec-which-don-t-depend-on-rails-hll
Post a comment