Unable to run rspec tests for plugins

It looks like your test DB isn’t loading plugin migrations. Try running:

RAILS_ENV=test LOAD_PLUGINS=1 bin/rails db:migrate

This ensures plugin migrations are applied to the test database. This issue matches what was discussed here:

3 Likes