Skip to content

Commit 84c40ee

Browse files
committed
Remove unused method from admin passwords controller
Neither we nor Devise is calling this method
1 parent e5cd019 commit 84c40ee

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

app/controllers/alchemy/admin/passwords_controller.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ def new_session_path(resource_name)
2222
alchemy.admin_login_path
2323
end
2424

25-
def admin_edit_password_url(_resource, options = {})
26-
alchemy.admin_edit_password_url(options)
27-
end
28-
2925
def after_resetting_password_path_for(resource)
3026
alchemy.admin_dashboard_path
3127
end

spec/features/admin/password_reset_feature_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
end
2121

2222
it "User can change password." do
23-
allow(Alchemy::User)
23+
expect(Alchemy::User)
2424
.to receive(:reset_password_by_token)
2525
.and_return(user)
2626

0 commit comments

Comments
 (0)