fix profiles spec
This commit is contained in:
parent
b804db2648
commit
0925f30134
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue