Skip to content

Commit

Permalink
Fix compile error in upcoming Avram release
Browse files Browse the repository at this point in the history
```
user.reload.email = new_email
                  ^----
Error: Error: undefined method 'email=' for User
```
  • Loading branch information
akadusei committed Dec 30, 2023
1 parent 17637ca commit f46dd85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/shield/operations/update_confirmed_email_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe Shield::UpdateConfirmedEmail do
) do |_operation, updated_email_confirmation|
_operation.saved?.should be_true

user.reload.email = new_email
user.reload.email.should eq(new_email)

updated_email_confirmation.status.active?.should be_false
updated_email_confirmation.success?.should be_true
Expand Down

0 comments on commit f46dd85

Please sign in to comment.