From af33e62662b816df55cf46fe6f2691f2527ed1c6 Mon Sep 17 00:00:00 2001 From: Sergio Cambra Date: Wed, 19 Apr 2023 12:53:50 +0200 Subject: [PATCH] fix string matching on error message with rails 7.1 --- test/integration/invitation_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/invitation_test.rb b/test/integration/invitation_test.rb index e6ce1eca..c6643e38 100644 --- a/test/integration/invitation_test.rb +++ b/test/integration/invitation_test.rb @@ -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