From f0e550b0dee6d1a17a7dc47f743fbe804c89e42e Mon Sep 17 00:00:00 2001 From: viralpraxis Date: Mon, 3 Nov 2025 12:41:25 +0400 Subject: [PATCH] Drop 3.1 leftovers --- spec/unit/unparser_spec.rb | 8 -------- test/corpus/literal/def.rb | 8 ++++++++ test/corpus/literal/since/31.rb | 7 ------- 3 files changed, 8 insertions(+), 15 deletions(-) delete mode 100644 test/corpus/literal/since/31.rb diff --git a/spec/unit/unparser_spec.rb b/spec/unit/unparser_spec.rb index be2a082a..e33c3f9a 100644 --- a/spec/unit/unparser_spec.rb +++ b/spec/unit/unparser_spec.rb @@ -475,14 +475,6 @@ def foo(bar) ) end - if RUBY_VERSION < '3.2.' - excludes.concat( - %w[ - test/corpus/literal/since/31.rb - ] - ) - end - excludes.flat_map { |file| ['--ignore', file] } end diff --git a/test/corpus/literal/def.rb b/test/corpus/literal/def.rb index 76ac5403..eefe4402 100644 --- a/test/corpus/literal/def.rb +++ b/test/corpus/literal/def.rb @@ -140,3 +140,11 @@ def f def foo(return:) { return: } end + +def foo(&) + bar(&) +end + +def foo(a, &) + bar(&) +end diff --git a/test/corpus/literal/since/31.rb b/test/corpus/literal/since/31.rb deleted file mode 100644 index 504eb94d..00000000 --- a/test/corpus/literal/since/31.rb +++ /dev/null @@ -1,7 +0,0 @@ -def foo(&) - bar(&) -end - -def foo(a, &) - bar(&) -end