Rspec -> Could not find generator rspec_controller

for some reason, i cannot get the rspec generators to work. i am getting
the following:

$ rails generate rspec_controller
Could not find generator rspec_controller.

the rest of the parts of rspec (that i am familiar with) seem to be
doing just fine.

i am running:

  • rails (3.0.5)
  • rspec (2.6.0.rc2)
  • rspec-core (2.6.0.rc2)
  • rspec-expectations (2.6.0.rc2)
  • rspec-mocks (2.6.0.rc2)
  • rspec-rails (2.6.0.rc2)

any ideas?

thanks!

Sergio R. wrote in post #995322:

for some reason, i cannot get the rspec generators to work. i am getting
the following:

$ rails generate rspec_controller
Could not find generator rspec_controller.

the rest of the parts of rspec (that i am familiar with) seem to be
doing just fine.

i am running:

  • rails (3.0.5)
  • rspec (2.6.0.rc2)
  • rspec-core (2.6.0.rc2)
  • rspec-expectations (2.6.0.rc2)
  • rspec-mocks (2.6.0.rc2)
  • rspec-rails (2.6.0.rc2)

You don’t have to prepend the generators with rspec anymore with Rails
3. Just use rails generate controller.

perfect! thanks!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs