Skip to content

Commit

Permalink
Run struct specs from rubyspec
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Oct 30, 2013
1 parent 25b1c64 commit 910189b
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 59 deletions.
26 changes: 0 additions & 26 deletions spec/corelib/struct/fixtures/classes.rb

This file was deleted.

10 changes: 0 additions & 10 deletions spec/corelib/struct/initialize_spec.rb

This file was deleted.

23 changes: 0 additions & 23 deletions spec/corelib/struct/new_spec.rb

This file was deleted.

11 changes: 11 additions & 0 deletions spec/filters/bugs/struct.rb
@@ -0,0 +1,11 @@
opal_filter "Struct" do
fails "Struct#initialize can be overriden"
fails "Struct.new fails with too many arguments"
fails "Struct.new creates a constant in subclass' namespace"
fails "Struct.new raises a TypeError if object is not a Symbol"
fails "Struct.new raises a TypeError if object doesn't respond to to_sym"
fails "Struct.new fails with invalid constant name as first argument"
fails "Struct.new does not create a constant with symbol as first argument"
fails "Struct.new creates a new anonymous class with nil first argument"
fails "Struct.new calls to_str on its first argument (constant name)"
end
2 changes: 2 additions & 0 deletions spec/filters/unsupported/private_methods.rb
Expand Up @@ -6,6 +6,8 @@
fails "Hash#initialize_copy is private"
fails "Hash#initialize is private"

fails "Struct#initialize is private"

fails "Defining an 'initialize' method sets the method's visibility to private"
fails "Defining an 'initialize_copy' method sets the method's visibility to private"

Expand Down
3 changes: 3 additions & 0 deletions spec/rubyspecs
Expand Up @@ -247,6 +247,9 @@ core/string/upcase_spec

core/symbol/to_proc_spec

core/struct/initialize_spec
core/struct/new_spec

core/class/new_spec

core/time/mktime_spec
Expand Down

0 comments on commit 910189b

Please sign in to comment.