Controller_name in rspec-rails2?

I have some specs that use controller_name because of namespaced
temporary controllers in my specs. In rspec-rails2 I’m told that
controller_name is not a valid method. Is there a workaround for this?

Thanks,
Steve

On Fri, Apr 23, 2010 at 10:37 AM, Steve [email protected] wrote:

I have some specs that use controller_name because of namespaced
temporary controllers in my specs. In rspec-rails2 I’m told that
controller_name is not a valid method. Is there a workaround for this?

Try:

describe “blah de blah” do
subject { MyTempController }
end

No guarantees, but probably the right direction.

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