Skip to content
Permalink
Browse files
add a test for #3296
  • Loading branch information
matz committed Nov 29, 2016
1 parent 3774311 commit 5771c9778e917803adeb6e3f6ab7b0680d10aaa1
Showing 1 changed file with 10 additions and 0 deletions.
@@ -187,3 +187,13 @@
Struct.new("Test", [:a])
end
end

assert("Struct.new generates subclass of Struct") do
begin
original_struct = Struct
Struct = String
assert_equal original_struct, original_struct.new.superclass
ensure
Struct = original_struct
end
end

0 comments on commit 5771c97

Please sign in to comment.