We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5cfb86 commit 8386580Copy full SHA for 8386580
spec/requests/admin/users_controller/updated_ajax_spec.rb
@@ -52,7 +52,7 @@
52
expect(response.body).to start_with(
53
'ERROR: ActionController::ParameterMissing, param is missing or the value is empty'
54
)
55
- expect(response.body.chomp).to end_with('password_confirmation')
+ expect(response.body).to include('password_confirmation')
56
expect(current_user.reload.authenticate('secret')).to be_truthy
57
expect(current_user.reload.authenticate('new password')).to be_falsey
58
end
0 commit comments