From a812a7c3b503b01113ca1ade1c7a150ce13e3cb5 Mon Sep 17 00:00:00 2001 From: PikachuEXE Date: Thu, 26 Dec 2024 08:45:17 +0800 Subject: [PATCH] ! Fix spec for ruby 3.4 --- spec/contracted_value/value_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/contracted_value/value_spec.rb b/spec/contracted_value/value_spec.rb index 1fcaedd..0fc0609 100644 --- a/spec/contracted_value/value_spec.rb +++ b/spec/contracted_value/value_spec.rb @@ -53,7 +53,8 @@ value_class.class_eval do attribute(1) end - }.to raise_error(::NoMethodError, /undefined method `to_sym'/) + }.to raise_error(::NoMethodError, /undefined method `to_sym'|undefined method 'to_sym'/) + # ruby 3.4+ uses different quotes end end