I’m happy

undefined method `current_user=' for #<SessionsController

in 9.33 .. my installation doesn't seem to like

def test_sign_in(user)
controller.current_user = user
end

i get a

NoMethodError in 'SessionsController DELETE 'destroy' should sign a user out'
undefined method `current_user=' for #
/home/kirb/rails_projects/demo_app/spec/spec_helper.rb:32:in `test_sign_in'
/home/kirb/rails_projects/demo_app/spec/controllers/sessions_controller_spec.rb:70:

I can't seem to find anything on this...
9 people have
this problem
+1
Reply