Skip to content

Commit

Permalink
fix string matching on error message with rails 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
scambra committed Apr 19, 2023
1 parent 7e99041 commit 784dd57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/invitation_test.rb
Expand Up @@ -98,7 +98,7 @@ def set_password(options = {}, &block)
fill_in 'Password confirmation', with: 'other_password'
end
assert_equal user_invitation_path, current_path
assert page.has_css?('#error_explanation li', text: /Password .*doesn\'t match/)
assert page.has_css?('#error_explanation li', text: /Password .*doesn['`]t match/)
assert !user.confirmed?
end

Expand Down

0 comments on commit 784dd57

Please sign in to comment.