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
I''m trying to use some temporary spec only namespaced controllers with rspec-rails2 and rails3 and my specs fail saying no method for ''controller_name''. The same specs work perfectly fine with rails2 and rspec-rails. Putting the specific controller into the describe doesn''t work. What is the current way to do this with rspec v2? Thanks, Steve
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.