You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1000 B
28 lines
1000 B
1 year ago
|
From 26b106a540ad57cd73401461451aa2711c541e9d Mon Sep 17 00:00:00 2001
|
||
|
From: James Mead <james@floehopper.org>
|
||
|
Date: Fri, 25 Nov 2022 09:04:43 +0000
|
||
|
Subject: [PATCH] Fix regexp_matches tests in Ruby v3.2
|
||
|
|
||
|
Object#~= has been removed from Ruby v3.2 [1].
|
||
|
|
||
|
Closes #590.
|
||
|
|
||
|
[1]: https://bugs.ruby-lang.org/issues/15231
|
||
|
---
|
||
|
.circleci/config.yml | 1 +
|
||
|
test/unit/parameter_matchers/regexp_matches_test.rb | 2 +-
|
||
|
2 files changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/test/unit/parameter_matchers/regexp_matches_test.rb b/test/unit/parameter_matchers/regexp_matches_test.rb
|
||
|
index 058baacc..20fb7c7c 100644
|
||
|
--- a/test/unit/parameter_matchers/regexp_matches_test.rb
|
||
|
+++ b/test/unit/parameter_matchers/regexp_matches_test.rb
|
||
|
@@ -44,6 +44,6 @@ def test_should_not_match_on_argument_that_does_not_respond_to_equals_tilde
|
||
|
private
|
||
|
|
||
|
def object_not_responding_to_equals_tilde
|
||
|
- Class.new { undef =~ }.new
|
||
|
+ Class.new { undef =~ if respond_to?(:=~) }.new
|
||
|
end
|
||
|
end
|