diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-11-25 09:44:22 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-11-25 09:44:22 +0900 |
| commit | 743c1e7be190eca83a08b95b0f6045cbdc9ba625 (patch) | |
| tree | 29fe3d5869451a57875fb4f487145fd6f62fa905 /mrbgems/mruby-struct | |
| parent | 1329529f3b6a94ab8a2025af38a1eb6dd46150cc (diff) | |
| download | mruby-743c1e7be190eca83a08b95b0f6045cbdc9ba625.tar.gz mruby-743c1e7be190eca83a08b95b0f6045cbdc9ba625.zip | |
stop warnings in the test; ref #3280
Diffstat (limited to 'mrbgems/mruby-struct')
| -rw-r--r-- | mrbgems/mruby-struct/test/struct.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mrbgems/mruby-struct/test/struct.rb b/mrbgems/mruby-struct/test/struct.rb index 3e5d00d1f..2fe684960 100644 --- a/mrbgems/mruby-struct/test/struct.rb +++ b/mrbgems/mruby-struct/test/struct.rb @@ -160,6 +160,7 @@ assert("Struct#dig") do 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 @@ -171,6 +172,7 @@ assert("Struct#initialize_copy requires struct to be the same type") do begin Struct.new("Test", :a) a = Struct::Test.new("a") + Struct.remove_const :Test Struct.new("Test", :a, :b) assert_raise(TypeError) do a.initialize_copy(Struct::Test.new("a", "b")) |
