RubySpec: Module class-variable-related spec failures
-----------------------------------------------------
Key: JRUBY-5667
URL: http://jira.codehaus.org/browse/JRUBY-5667
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules, RubySpec
Affects Versions: JRuby 1.6
Reporter: Charles Oliver Nutter
{noformat}
12)
Module#class_variable_defined? returns false if the class variable is not
defined in a metaclass FAILED
Expected true to be false
/Users/headius/projects/jruby/spec/ruby/core/module/class_variable_defined_spec.rb:28:in
`(root)'
org/jruby/RubyKernel.java:2007:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/module/class_variable_defined_spec.rb:4:in
`(root)'
org/jruby/RubyKernel.java:1062:in `load'
/Users/headius/projects/jruby/spec/ruby/core/module/class_variable_defined_spec.rb:56:in
`files'
org/jruby/RubyKernel.java:2007:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'
13)
Module#class_variables returns an Array of Strings of class variable names
defined in a metaclass FAILED
Expected ["@@ip", "@@defined_specs_obj", "@@a", "@@var"]
to equal ["@@var"]
/Users/headius/projects/jruby/spec/ruby/core/module/class_variables_spec.rb:20:in
`(root)'
org/jruby/RubyKernel.java:2007:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/module/class_variables_spec.rb:4:in
`(root)'
org/jruby/RubyKernel.java:1062:in `load'
/Users/headius/projects/jruby/spec/ruby/core/module/class_variables_spec.rb:56:in
`files'
org/jruby/RubyKernel.java:2007:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'
14)
Module#remove_class_variable removes a class variable defined in a metaclass
ERROR
NameError: cannot remove @@var for #<Class:0x11fd25ec5>
org/jruby/RubyModule.java:2393:in `remove_class_variable'
org/jruby/RubyKernel.java:2042:in `send'
/Users/headius/projects/jruby/spec/ruby/core/module/remove_class_variable_spec.rb:20:in
`(root)'
org/jruby/RubyKernel.java:2007:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/module/remove_class_variable_spec.rb:4:in
`(root)'
org/jruby/RubyKernel.java:1062:in `load'
/Users/headius/projects/jruby/spec/ruby/core/module/remove_class_variable_spec.rb:56:in
`files'
org/jruby/RubyKernel.java:2007:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email