diff options
author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-16 03:25:09 +0000 |
---|---|---|
committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-16 03:25:09 +0000 |
commit | f6f7073e125ff903b77b8cb982a7417d96d51902 () | |
tree | c9a4b8cda01244adf12b2f5c97ee8130445168bf /test | |
parent | 632b1e9442d3d5ced2c51b71a85f8f9a47aa9aae (diff) |
* test_struct.rb: Test that initialize is overridable [#11708]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_struct.rb | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -94,6 +94,12 @@ module TestStruct def test_initialize klass = @Struct.new(:a) assert_raise(ArgumentError) { klass.new(1, 2) } end def test_each |