summaryrefslogtreecommitdiff
path: root/test/ruby/test_struct.rb
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_struct.rb10
1 files changed, 10 insertions, 0 deletions
@@ -119,6 +119,16 @@ module TestStruct
end
end
def test_initialize
klass = @Struct.new(:a)
assert_raise(ArgumentError) { klass.new(1, 2) }