We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88598b8 commit 2afb805Copy full SHA for 2afb805
spec/requests/mutations/update_password_with_token_spec.rb
@@ -34,6 +34,7 @@
34
user.reload
35
end.to change(user, :encrypted_password)
36
37
+ expect(user).to be_valid_password(password)
38
expect(json_response[:data][:userUpdatePasswordWithToken][:credentials]).to be_nil
39
expect(json_response[:data][:userUpdatePasswordWithToken][:authenticatable]).to include(email: user.email)
40
end
@@ -107,6 +108,7 @@
107
108
admin.reload
109
end.to change(admin, :encrypted_password)
110
111
+ expect(admin).to be_valid_password(password)
112
expect(json_response[:data][:adminUpdatePasswordWithToken]).to include(
113
credentials: { uid: admin.email },
114
authenticatable: { email: admin.email }
0 commit comments