Commit 0925f301 authored by James Lopez's avatar James Lopez

fix profiles spec

parent b804db26
...@@ -27,7 +27,7 @@ class ProfilesController < Profiles::ApplicationController ...@@ -27,7 +27,7 @@ class ProfilesController < Profiles::ApplicationController
end end
def reset_private_token def reset_private_token
Users::UpdateService.new(@user).execute!(skip_authorization: true) do |user| Users::UpdateService.new(@user).execute! do |user|
user.reset_authentication_token! user.reset_authentication_token!
end end
...@@ -37,7 +37,7 @@ class ProfilesController < Profiles::ApplicationController ...@@ -37,7 +37,7 @@ class ProfilesController < Profiles::ApplicationController
end end
def reset_incoming_email_token def reset_incoming_email_token
Users::UpdateService.new(@user).execute!(skip_authorization: true) do |user| Users::UpdateService.new(@user).execute! do |user|
user.reset_incoming_email_token! user.reset_incoming_email_token!
end end
...@@ -47,7 +47,7 @@ class ProfilesController < Profiles::ApplicationController ...@@ -47,7 +47,7 @@ class ProfilesController < Profiles::ApplicationController
end end
def reset_rss_token def reset_rss_token
Users::UpdateService.new(@user).execute!(skip_authorization: true) do |user| Users::UpdateService.new(@user).execute! do |user|
user.reset_rss_token! user.reset_rss_token!
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment