Sha256: 42e712ae42310d8103541b86d8da871e99aa871b023802c90df076fccfd04d92

Contents?: true

Size: 1.52 KB

Versions: 11

Compression:

Stored size: 1.52 KB

Contents

# NOTE: run bin/format-filters after changing this file
opal_filter "BasicObject" do
  fails "BasicObject raises NoMethodError for nonexistent methods after #method_missing is removed"
  fails "BasicObject#initialize does not accept arguments"
  fails "BasicObject#instance_eval evaluates string with given filename and linenumber"
  fails "BasicObject#instance_eval evaluates string with given filename and negative linenumber" # Expected ["RuntimeError"] to equal ["b_file", "-98"]
  fails "BasicObject#instance_eval has access to the caller's local variables" # Expected nil to equal "value"
  fails "BasicObject#instance_exec raises a LocalJumpError unless given a block"
  fails "BasicObject#method_missing for an instance sets the receiver of the raised NoMethodError"
  fails "BasicObject#singleton_method_added when singleton_method_added is undefined calls #method_missing" # Expected [] == [["singleton_method_added", "foo"],  ["singleton_method_added", "bar"],  ["singleton_method_added", "baz"]] to be truthy but was false
  fails "BasicObject#singleton_method_added when singleton_method_added is undefined raises NoMethodError for a metaclass" # Expected NoMethodError (/undefined method `singleton_method_added' for/) but no exception was raised ("foo" was returned)
  fails "BasicObject#singleton_method_added when singleton_method_added is undefined raises NoMethodError for a singleton instance" # Expected NoMethodError (/undefined method `singleton_method_added' for #<Object:/) but no exception was raised ("foo" was returned)
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
opal-1.6.1 spec/filters/bugs/basicobject.rb
opal-1.6.0 spec/filters/bugs/basicobject.rb
opal-1.6.0.rc1 spec/filters/bugs/basicobject.rb
opal-1.6.0.alpha1 spec/filters/bugs/basicobject.rb
opal-1.5.1 spec/filters/bugs/basicobject.rb
opal-1.5.0 spec/filters/bugs/basicobject.rb
opal-1.5.0.rc1 spec/filters/bugs/basicobject.rb
opal-1.4.1 spec/filters/bugs/basicobject.rb
opal-1.4.0 spec/filters/bugs/basicobject.rb
opal-1.4.0.alpha1 spec/filters/bugs/basicobject.rb
opal-1.3.2 spec/filters/bugs/basicobject.rb