Shopify / ruby-lsp-rails

A Ruby LSP addon for Rails
https://shopify.github.io/ruby-lsp/rails-addon
MIT License
552 stars 25 forks source link

Set up DB for tests as part of default Rake task #374

Closed andyw8 closed 4 months ago

andyw8 commented 4 months ago

The first time someone cloned and runs the tests, they'll get a confusing error because the dB doesn't yet exist.

I originally considered checking if the DB exists first, but creating is very quick so I don't think that's necessary.

(for sqlite3 at least, db:setup is idempotent so there's no problem with it being re-run. We don't care about the data in the DB).