RubySpec failures from REXML kind_of method
-------------------------------------------
Key: JRUBY-4928
URL: http://jira.codehaus.org/browse/JRUBY-4928
Project: JRuby
Issue Type: Bug
Components: RubySpec, Standard Library
Affects Versions: JRuby 1.5.1, JRuby 1.5
Environment: Github trunk
Reporter: Hiro Asari
Priority: Minor
This is an offshoot of JRUBY-2234. As it stands, there are four failing specs
for REXML. The first two
{noformat}
$ jruby spec/mspec/bin/mspec spec/ruby/library/rexml/jruby 1.6.0.dev (ruby
1.8.7 patchlevel 249) (2010-07-08 2821265) (Java HotSpot(TM) 64-Bit Server VM
1.6.0_20) [x86_64-java]
....................................E.........E............F...........................................
1)
REXML::Document#add overwrites existing DocType ERROR
NoMethodError: undefined method `kind_of' for #<REXML::DocType:0x44af17c7>
/Users/asari/Development/src/jruby/lib/ruby/1.8/rexml/document.rb:81:in `add'
/Users/asari/Development/src/jruby/spec/ruby/library/rexml/document/add_spec.rb:38
/Users/asari/Development/src/jruby/spec/ruby/library/rexml/document/add_spec.rb:55
/Users/asari/Development/src/jruby/spec/ruby/library/rexml/document/add_spec.rb:56:in
`load'
2)
REXML::Document#<< overwrites existing DocType ERROR
NoMethodError: undefined method `kind_of' for #<REXML::DocType:0x370aa282>
/Users/asari/Development/src/jruby/lib/ruby/1.8/rexml/document.rb:81:in `add'
/Users/asari/Development/src/jruby/spec/ruby/library/rexml/document/add_spec.rb:38
/Users/asari/Development/src/jruby/spec/ruby/library/rexml/document/add_spec.rb:59
/Users/asari/Development/src/jruby/spec/ruby/library/rexml/document/add_spec.rb:56:in
`load'
{noformat}
are simple bug in the standard library. I opened a ticket with MRI, and it will
eventually be backported to the 1.8 branch.
http://redmine.ruby-lang.org/issues/show/3551
The last two are outstanding bugs in REXML. MRI does not recognize a maintainer
for this library (http://redmine.ruby-lang.org/wiki/8/Maintainers).
http://trac.germane-software.com/rexml/ticket/162
{noformat}
3)
REXML::Document#write returns document with transitive support ERROR
ArgumentError: wrong # of arguments(2 for 1)
/Users/asari/Development/src/jruby/lib/ruby/1.8/rexml/document.rb:189:in
`initialize'
/Users/asari/Development/src/jruby/lib/ruby/1.8/rexml/document.rb:189:in `new'
/Users/asari/Development/src/jruby/lib/ruby/1.8/rexml/document.rb:189:in `write'
/Users/asari/Development/src/jruby/spec/ruby/library/rexml/document/write_spec.rb:30
/Users/asari/Development/src/jruby/spec/ruby/library/rexml/document/write_spec.rb:6
/Users/asari/Development/src/jruby/spec/ruby/library/rexml/document/write_spec.rb:56:in
`load'
{noformat}
http://trac.germane-software.com/rexml/ticket/161
{noformat}
4)
REXML::Element#delete_element deletes Element and returns it FAILED
Expected nil
to equal <some_node/>
/Users/asari/Development/src/jruby/spec/ruby/library/rexml/element/delete_element_spec.rb:35
/Users/asari/Development/src/jruby/spec/ruby/library/rexml/element/delete_element_spec.rb:4
/Users/asari/Development/src/jruby/spec/ruby/library/rexml/element/delete_element_spec.rb:56:in
`load'
Finished in 2.128000 seconds
103 files, 265 examples, 343 expectations, 1 failure, 3 errors
{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