[rspec-users] undefined method: controller_name
mailing_lists at railsnewbie.com
Wed Dec 12 12:14:21 EST 2007
On Dec 12, 2007, at 10:56 AM, David Chelimsky wrote:
> On Dec 12, 2007 9:50 AM, Alvin Schur <a.schur at nucleus.com> wrote:
>> With rspec 1.0.8 I have a spec in the directory:
>> require File.dirname(__FILE__) + '/../../spec_helper'
>> class DummyController < ApplicationController
>> def index
>> raise "Prevent index from rendering"
>> describe ApplicationController, "Handling errors in production",
>> :behaviour_type => :controller do
> Try :type instead and see if that works.
Yep. I had a bunch of regressions with :behaviour_type => ..., which
started to fail a few weeks ago. Changing it to :type seemed to fix
More information about the rspec-users