Commented out "Struct.new removes existing constant" test

Because this test is always skipped.
This commit is contained in:
KOBAYASHI Shuji
2019-04-28 18:42:23 +09:00
parent b15293e709
commit 5969ed1afb
+8 -8
View File
@@ -152,14 +152,14 @@ assert("Struct#dig") do
assert_equal 1, a.dig(1, 0)
end
assert("Struct.new removes existing constant") do
skip "redefining Struct with same name cause warnings"
begin
assert_not_equal Struct.new("Test", :a), Struct.new("Test", :a, :b)
ensure
Struct.remove_const :Test
end
end
# TODO: suppress redefining Struct warning during test
# assert("Struct.new removes existing constant") do
# begin
# assert_not_equal Struct.new("Test", :a), Struct.new("Test", :a, :b)
# ensure
# Struct.remove_const :Test
# end
# end
assert("Struct#initialize_copy requires struct to be the same type") do
begin