Kristian Mandrup
2010-Jun-10 15:49 UTC
[rspec-users] RSpec 2: undefined method `controller_name'' for :Class (NoMethodError)
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?
Vladimir Rybas
2011-May-25 17:52 UTC
[rspec-users] RSpec 2: undefined method `controller_name'' for :Class (NoMethodError)
Have you figured that out? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110525/afd56e3a/attachment-0001.html>