i just want to know and want to try, is it possible run rails test without db:create and db:migrate?

I'm new with ruby on rails (rails 5.2.3). i've tried and it cant run the test, i think fixture already handle the data for dummy. Or maybe i missed some steps?

1 Answers

Community On

You still have to create the db test before you can run any test. Try this in terminal:

RAILS_ENV=test bin/rails db:create
RAILS_ENV=test bin/rails db:migrate

then try again with your tests. Hope this helps