Skip to content

Commit 41d963b

Browse files
committed
Avoid to use it with block scope becaus Ruby 3.4 introduced block parameters named it
1 parent 4d020e9 commit 41d963b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/test_rake_file_list.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -563,27 +563,27 @@ def test_enumeration_methods
563563
assert_equal ["a", "b"], b
564564
assert_equal FileList, b.class
565565

566-
b = a.sort_by { |it| it }
566+
b = a.sort_by { |i| i }
567567
assert_equal ["a", "b"], b
568568
assert_equal FileList, b.class
569569

570-
b = a.select { |it| it == "b" }
570+
b = a.select { |i| i == "b" }
571571
assert_equal ["b"], b
572572
assert_equal FileList, b.class
573573

574-
b = a.select { |it| it.size == 1 }
574+
b = a.select { |i| i.size == 1 }
575575
assert_equal ["a", "b"], b
576576
assert_equal FileList, b.class
577577

578-
b = a.reject { |it| it == "b" }
578+
b = a.reject { |i| i == "b" }
579579
assert_equal ["a"], b
580580
assert_equal FileList, b.class
581581

582582
b = a.grep(/./)
583583
assert_equal ["a", "b"], b
584584
assert_equal FileList, b.class
585585

586-
b = a.partition { |it| it == "b" }
586+
b = a.partition { |i| i == "b" }
587587
assert_equal [["b"], ["a"]], b
588588
assert_equal Array, b.class
589589
assert_equal FileList, b[0].class

0 commit comments

Comments
 (0)