[rspec-users] Rails 3 + RSpec-Rails 2.0 generators (different question)

Brian Cardarella bcardarella at gmail.com
Thu Jun 3 13:18:28 EDT 2010

Nevermind, I see that the rspec generators will hook into the rails
ones. So if I call 'rails g model SomeModel' it will call the
rspec:model generator. Pretty sweet!

- Brian

On Jun 3, 1:00 pm, Brian Cardarella <bcardare... at gmail.com> wrote:
> I just tried 'rails g rspec:model SomeModel' and all I get back are
> the specs. I checked the generator file and it does seem that only the
> specs are being generated.
> Is the behavior we should expect from the rspec-rails generators? I
> would have thought it would generate the model file and the migrations
> as well. Should I be running the rails model generator as well? Would
> it make sense for the rspec-rails generator to call the rails
> generator?
> A quick check at the controller generator shows it is similar.
> - Brian
> _______________________________________________
> rspec-users mailing list
> rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users

More information about the rspec-users mailing list