Sha256: 010207c6996e0409c155d85991ead5fe1e7bb0c694f4c14757bf14ba84da4ea0

Contents?: true

Size: 999 Bytes

Versions: 11

Compression:

Stored size: 999 Bytes

Contents

opal_filter "Module" do
  fails "A class definition has no class variables"
  fails "A class definition allows the declaration of class variables in the body"
  fails "A class definition allows the declaration of class variables in a class method"
  fails "A class definition allows the declaration of class variables in an instance method"

  fails "Module#method_defined? converts the given name to a string using to_str"
  fails "Module#method_defined? raises a TypeError when the given object is not a string/symbol/fixnum"
  fails "Module#method_defined? does not search Object or Kernel when called on a module"
  fails "Module#method_defined? returns true if a public or private method with the given name is defined in self, self's ancestors or one of self's included modules"

  fails "Module#const_defined? should not search parent scopes of classes and modules if inherit is false"
  fails "Module#const_get should not search parent scopes of classes and modules if inherit is false"
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
opal-0.6.3 spec/filters/bugs/module.rb
opal-cj-0.7.0.beta2 spec/filters/bugs/module.rb
opal-cj-0.7.0.beta1 spec/filters/bugs/module.rb
opal-0.7.0.beta1 spec/filters/bugs/module.rb
opal-0.6.2 spec/filters/bugs/module.rb
opal-0.6.1 spec/filters/bugs/module.rb
opal-0.6.0 spec/opal/filters/bugs/module.rb
opal-0.5.5 spec/opal/filters/bugs/module.rb
opal-0.5.4 spec/filters/bugs/module.rb
opal-0.5.2 spec/filters/bugs/module.rb
opal-0.5.0 spec/filters/bugs/module.rb