RubyFlow The Ruby and Rails community linklog

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in