Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
db:test:prepare deprecated #2629
Because db:test:prepare is deprecated (rails/rails#13528), running
bundle exec rake refinery:testing:dummy_app
give me this:
To fix it for me, changed the "db:test:prepare" to "RAILS_ENV=test db:setup" on
I didn't send a pull request with this because I don't know if this is the best solution. I was reading that rspec-rails runs it automagicaly (rspec/rspec-rails#936), but I think we use a different path on refinery.
What do you think?
The problem is not the deprecation warning itself, is that if I run the command as the docs suggests, I can't test my app because the dummy_test db isn't created.
Even if I put
on the spec_helper.rb I got the same error, since this code AFAIK just keep the schema in sync with the dev database, but doesn't create the test db.