Hello, The tests pass with Ruby 3.3, but they doesn't with Ruby 3.4: ``` Failures: 1) MethodSource::CodeHelpers should not raise an error on broken lines: issue = %W/\n343/ Failure/Error: eval("BEGIN{throw :valid}\n#{str}") SyntaxError: (eval at /home/gemmaro/src/_vendor/method_source/lib/method_source/code_helpers.rb:71):2: syntax error found (SyntaxError) 1 | BEGIN{throw :valid} > 2 | issue = %W/ | ^~~ unterminated list; expected a closing delimiter for the `%W` # ./lib/method_source/code_helpers.rb:71:in 'Kernel#eval' # ./lib/method_source/code_helpers.rb:71:in 'block in MethodSource::CodeHelpers#complete_expression?' # ./lib/method_source/code_helpers.rb:70:in 'Kernel#catch' # ./lib/method_source/code_helpers.rb:70:in 'MethodSource::CodeHelpers#complete_expression?' # ./spec/method_source/code_helpers_spec.rb:22:in 'block (4 levels) in <top (required)>' # ./spec/method_source/code_helpers_spec.rb:21:in 'Integer#upto' # ./spec/method_source/code_helpers_spec.rb:21:in 'block (3 levels) in <top (required)>' 2) MethodSource::CodeHelpers should raise an error on invalid syntax like ["def", "method(1"] Failure/Error: expect { @tester.complete_expression?(foo.join("\n")) }.to raise_error(SyntaxError) expected SyntaxError but nothing was raised # ./spec/method_source/code_helpers_spec.rb:40:in 'block (3 levels) in <top (required)>' ```
Activity