I was just having issues running plugin specs after running
RAILS_ENV=test bin/rake db:migrate
The migrations in the plugin I was testing, were not being run. I then ran:
LOAD_PLUGINS=1 RAILS_ENV=test bundle exec rake db:migrate
And now my plugin migrations are up!
It is interesting that without LOAD_PLUGINS=1 and in development environment, plugin migrations ran, but in testing the migrations were not.