Skip to content

Commit

Permalink
fix cop
Browse files Browse the repository at this point in the history
  • Loading branch information
ka8725 committed Jun 28, 2024
1 parent d28e32e commit 58990c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/controllers/users/registrations_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@

it { expect { put :update, params: { id: user.id, user: { name: new_email } } }.to change { user.reload.name }.to(new_email) }
it {
expect {
expect do
put :update, params: { id: user.id, user: { password: new_password, password_confirmation: new_password } }
}.to change { user.reload.valid_password?(new_password) }.from(false).to(true)
end.to change { user.reload.valid_password?(new_password) }.from(false).to(true)
}
end
end

0 comments on commit 58990c2

Please sign in to comment.