fix profiles spec

This commit is contained in:
James Lopez 2017-06-23 12:52:36 +02:00
parent b804db2648
commit 0925f30134
1 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ class ProfilesController < Profiles::ApplicationController
end
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!
end
@ -37,7 +37,7 @@ class ProfilesController < Profiles::ApplicationController
end
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!
end
@ -47,7 +47,7 @@ class ProfilesController < Profiles::ApplicationController
end
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!
end