describe ApplicationController, "handling AccessDenied exceptions" do

  class FooController < ApplicationController
    def index
      raise AccessDenied
    end
  end
  controller_name 'foo' # OUCH!!!

  it "redirects to the /401.html (access denied) page" do
    get :index
    response.should redirect_to('/401.html')
  end

end
--
So how do I set the controller name using RSpec 2/Rails 3?
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to