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