I know
rake spec:models
to spec all models.
Is there a way to spec only one model, or only a given collection of models? Something like this would be desirable:
rake spec:model user
or with a collection of models
rak开发者_运维技巧e spec:model user role order
BTW: Brian Hogan wrote created something similar (see here) but maybe there is something built-in in rspec2
use the rspec command line ( with Rspec 2)
rspec spec/models/user_spec.rb
or if you want several
rspec spec/models/user_spec.rb spec/models/role_spec.rb
If you want a task for that create. it.
精彩评论