From: Lucas Kanashiro <kanashiro@debian.org>
Date: Fri, 6 Mar 2026 17:00:47 -0300
Subject: Fix test with ruby3.4

Forwarded: no
---
 test/partial_mock_test.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/partial_mock_test.rb b/test/partial_mock_test.rb
index 5e98cf0..4578e59 100644
--- a/test/partial_mock_test.rb
+++ b/test/partial_mock_test.rb
@@ -634,7 +634,7 @@ class TestStubbing < Minitest::Test
     exception = assert_raises(NameError) do
         obj.mocked_method
     end
-    assert_match(/undefined method `does_not_exist' for/, exception.message)
+    assert_match(/undefined method [`']does_not_exist[`']/, exception.message)
   end
 
   def test_it_checks_whether_mocks_are_forbidden_before_forwarding_the_call
