File tree 6 files changed +16
-59
lines changed
6 files changed +16
-59
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ opal_filter "Struct" do
2
+ fails "Struct#initialize can be overriden"
3
+ fails "Struct.new fails with too many arguments"
4
+ fails "Struct.new creates a constant in subclass' namespace"
5
+ fails "Struct.new raises a TypeError if object is not a Symbol"
6
+ fails "Struct.new raises a TypeError if object doesn't respond to to_sym"
7
+ fails "Struct.new fails with invalid constant name as first argument"
8
+ fails "Struct.new does not create a constant with symbol as first argument"
9
+ fails "Struct.new creates a new anonymous class with nil first argument"
10
+ fails "Struct.new calls to_str on its first argument (constant name)"
11
+ end
Original file line number Diff line number Diff line change 6
6
fails "Hash#initialize_copy is private"
7
7
fails "Hash#initialize is private"
8
8
9
+ fails "Struct#initialize is private"
10
+
9
11
fails "Defining an 'initialize' method sets the method's visibility to private"
10
12
fails "Defining an 'initialize_copy' method sets the method's visibility to private"
11
13
Original file line number Diff line number Diff line change @@ -247,6 +247,9 @@ core/string/upcase_spec
247
247
248
248
core/symbol/to_proc_spec
249
249
250
+ core/struct/initialize_spec
251
+ core/struct/new_spec
252
+
250
253
core/class/new_spec
251
254
252
255
core/time/mktime_spec
You can’t perform that action at this time.
0 commit comments