On Sat, Dec 4, 2010 at 5:07 AM, Jim Morris <wolfma...@gmail.com> wrote:
> This his been discussed but the only definitive answer (kinda) was
> use...
>
>  describe "a description" do
>   system { SomeController }

subject {SomeController.new}

HTH,
David

>
>  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
> _______________________________________________
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to