Skip to content

Commit 0729052

Browse files
committed
Test against the target class
1 parent cd4f5b1 commit 0729052

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ruby/test_array.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,8 +652,8 @@ def test_concat
652652
b.concat(b, b)
653653
assert_equal([4, 5, 4, 5, 4, 5], b)
654654

655-
assert_raise(TypeError) { [0].concat(:foo) }
656-
assert_raise(FrozenError) { [0].freeze.concat(:foo) }
655+
assert_raise(TypeError) { @cls[0].concat(:foo) }
656+
assert_raise(FrozenError) { @cls[0].freeze.concat(:foo) }
657657

658658
a = @cls[nil]
659659
def (x = Object.new).to_ary; Array.new(10) {nil} << :ok; end

0 commit comments

Comments
 (0)