summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-04-28 23:44:37 +0900
committerGitHub <[email protected]>2019-04-28 23:44:37 +0900
commite4992cdd03db08fea6fa57507aeeabed8da73562 (patch)
treea30e88a91d44bc48020abec7e3910bc9114adb9c /mrbgems
parentb15293e709d8f3bf5ec8c3538960400cf25f0b6d (diff)
parent5969ed1afb0f28a2a3ce9504b4f1cb2f7c14ea57 (diff)
downloadmruby-e4992cdd03db08fea6fa57507aeeabed8da73562.tar.gz
mruby-e4992cdd03db08fea6fa57507aeeabed8da73562.zip
Merge pull request #4411 from shuujii/commented-out-Struct.new-removes-existing-constant-test
Commented out "Struct.new removes existing constant" test
Diffstat (limited to 'mrbgems')
-rw-r--r--mrbgems/mruby-struct/test/struct.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/mrbgems/mruby-struct/test/struct.rb b/mrbgems/mruby-struct/test/struct.rb
index c298fef9f..91e8cecc6 100644
--- a/mrbgems/mruby-struct/test/struct.rb
+++ b/mrbgems/mruby-struct/test/struct.rb
@@ -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