[rspec-users] how can I get rspec to generate files with rails g model ...?

Patrick J. Collins patrick at collinatorstudios.com
Mon Sep 12 21:34:06 EDT 2011

I just added RSpec 2 to a project that has been using test::unit, and I was
wondering how to get RSpec to automatically build test files for my models?

when I do rails g rspec:model foo, I just get see CREATE
spec/models/foo_spec.rb (no other files)

if I do rails g model foo, I see "invoke test unit", and a
test/unit/foo_test.rb gets created..

..  Is there something I need to do to get rspec invoked?


Patrick J. Collins

More information about the rspec-users mailing list