[rspec-users] controller_name in rspec-rails2?

David Chelimsky dchelimsky at gmail.com
Tue Apr 27 18:35:44 EDT 2010


On Fri, Apr 23, 2010 at 10:37 AM, Steve <vertebrate at gmail.com> 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.


More information about the rspec-users mailing list