[rspec-users] controller_name replacement?

Jim Morris wolfmanjm at gmail.com
Sat Dec 4 06:07:40 EST 2010


This his been discussed but the only definitive answer (kinda) was
use...

 describe "a description" do
   system { SomeController }

  end

However when I do that I get this error...

@controller is nil: make sure you set it in your test's setup method.

I used to use controller_name :somecontroller in older versions but
that does not exist anymore.

Thanks

Using rspec-core (2.2.1)
Using rspec-expectations (2.2.0)
Using rspec-mocks (2.2.0)
Using rspec (2.2.0)
Using rspec-rails (2.2.1)
Using webrat (0.7.2)

with rails 3.0.3


More information about the rspec-users mailing list