rake spec:models VS rspec spec/models which is recommended

Viewed 2331

We figured out both commands

rake spec:models

and

rspec spec/models

behave slightly differently in the way that the rake task cleans up the database first. Our tests relies on some initial data (from db/seeds.rb) so rake spec:models fails.

In the meantime I'm pretty sure one of these commands will get deprecated on day or another.

Which one should we trust?

1 Answers
Related