
rspecでテストしようとしたらActiveRecord::StatementInvalid: Could not find table
rspecでテストしようとしたらActiveRecord::StatementInvalid: Could not find table
rspecでmodelのテストをしようとしたら ActiveRecord::StatementInvalid: Could not find table ‘users’ と言われた。テスト環境のdbをマイグレイとすることでできた。
$ RAILS_ENV=test bundle exec rake db:migrate:reset
参考
https://qiita.com/souuuuta/items/83f2030f5a357630e09d