R – Generating Missing Spec Files for RSpec

rspecrubyruby-on-railsspecifications

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.

Best Solution

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.