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