diff --git a/app/helpers/sessions_helper.rb b/app/helpers/sessions_helper.rb index 9710ac4..0d92e1b 100644 --- a/app/helpers/sessions_helper.rb +++ b/app/helpers/sessions_helper.rb @@ -19,7 +19,7 @@ def signed_in? def sign_out cookies.delete(:remember_token) - self.current_user = nil + current_user = nil end private diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 698c0d1..c212d61 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -38,7 +38,7 @@ ActiveSupport::Dependencies.clear def test_sign_in(user) - controller.current_user = user + controller.sign_in(user) end end end