Controller_name replacement?

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

On Sat, Dec 4, 2010 at 5:07 AM, Jim M. [email protected] wrote:

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

describe “a description” do
system { SomeController }

subject {SomeController.new}

HTH,
David