05.06.2011 - RSpec.configure do |config| config.before(:each, :type => :controller) do context becomes AnonymousController, all tests fail, and "controller" is . to me: http://stackoverflow.com/questions/6394414/rspec-rails-login-filter .