Sha256: 8eeac0d4081989cc6504f6aa0cba0eb822bb6426fef70dc0fdf9079acc4d63f4

Contents?: true

Size: 525 Bytes

Versions: 13

Compression:

Stored size: 525 Bytes

Contents

opal_filter "Exception" do
  fails "Exception#message calls #to_s on self"

  fails "Exception.new returns the exception when it has a custom constructor"

  fails "Exception#to_s returns the self's name if no message is set"
  fails "Exception#to_s calls #to_s on the message"

  fails "Exception#inspect returns the class name when #to_s returns an empty string"
  fails "Exception#inspect includes #to_s when the result is non-empty"
  fails "Exception#inspect returns '#<Exception: Exception>' when no message given"
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
opal-0.8.1 spec/filters/bugs/exception.rb
opal-0.8.1.rc1 spec/filters/bugs/exception.rb
opal-0.8.0 spec/filters/bugs/exception.rb
opal-0.8.0.rc3 spec/filters/bugs/exception.rb
opal-0.8.0.rc2 spec/filters/bugs/exception.rb
opal-0.8.0.rc1 spec/filters/bugs/exception.rb
opal-0.8.0.beta1 spec/filters/bugs/exception.rb
opal-0.7.2 spec/filters/bugs/exception.rb
opal-0.7.1 spec/filters/bugs/exception.rb
opal-0.7.0 spec/filters/bugs/exception.rb
opal-0.7.0.rc1 spec/filters/bugs/exception.rb
opal-0.7.0.beta3 spec/filters/bugs/exception.rb
opal-0.7.0.beta2 spec/filters/bugs/exception.rb