Skip to content

Commit

Permalink
Fix failed spec
Browse files Browse the repository at this point in the history
This seemed to have failed as a result of a regression in Lucky
v0.24.0.

See luckyframework/avram#457
  • Loading branch information
akadusei committed Sep 12, 2020
1 parent d4de3d7 commit 127754f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/shield/operations/mixins/update_password_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,14 @@ describe Shield::UpdatePassword do
password = "pass)word1Apassword"
new_password = "ass)word1Apassword"

user = UserBox.create &.password_notify(false)
.password_digest(CryptoHelper.hash_bcrypt(password, 4))
user = UserBox.create &.password_digest(
CryptoHelper.hash_bcrypt(password, 4)
)

UpdateCurrentUser.update(
user,
params(password: new_password, password_confirmation: new_password),
password_notify: false,
current_login: nil
) do |operation, updated_user|
operation.saved?.should be_true
Expand Down

0 comments on commit 127754f

Please sign in to comment.