views:

153

answers:

1

Is there any command available for generating all missing spec files for existing models / controllers? I have a project that has several models that have been generated with out spec files.

+4  A: 

You could just run the generator and ignore the models/migrations/fixtures.

ruby script/generate rspec_model User --skip-migration --skip-fixture --skip

I've been looking into writing something to do this but there hasn't been any interest from others.

Brian Hogan