Sha256: 2ae33470380af822e0d40a5cb5d6ff968aeda5439a9d37b5a7d369446a24405b

Contents?: true

Size: 626 Bytes

Versions: 4

Compression:

Stored size: 626 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
opal-0.5.5 spec/opal/filters/bugs/struct.rb
opal-0.5.4 spec/filters/bugs/struct.rb
opal-0.5.2 spec/filters/bugs/struct.rb
opal-0.5.0 spec/filters/bugs/struct.rb