It\'s my understanding that Rails\' testing environment is torn down and rebuilt before each test...so how do I test a controller that requires that a user be logged in and
Try stubbing active?
active?
@user = Factory.create(:user) @user.stub(:active?).and_return(true) sign_in @user
You might also need to stub confirmed?, I'm not too familiar with Devise.
confirmed?