26 lines
980 B
Diff
26 lines
980 B
Diff
From e38c5d27a300cc6a7ee458c76dae6e0dcb2db640 Mon Sep 17 00:00:00 2001
|
|
From: Mamoru TASAKA <mtasaka@fedoraproject.org>
|
|
Date: Wed, 22 Apr 2026 16:49:46 +0900
|
|
Subject: [PATCH 1/2] fix ruby3.4 formatting change
|
|
|
|
ruby 3.4 changes formatting for some backtrace messages.
|
|
Support this using regex.
|
|
|
|
Closes #37 .
|
|
---
|
|
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 beb8f8f..b0f41d2 100644
|
|
--- a/test/partial_mock_test.rb
|
|
+++ b/test/partial_mock_test.rb
|
|
@@ -634,7 +634,7 @@ def test_partial_mocks_leaves_NoMethodError_exceptions_raised_by_the_original_me
|
|
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' for/, exception.message)
|
|
end
|
|
|
|
def test_it_checks_whether_mocks_are_forbidden_before_forwarding_the_call
|