Closed pravi closed 12 years ago
That failure seems to be caused by debian/ruby-tests.rb running the libxml and nokogiri version of the specs within the same ruby session. Can you point me to that script?
In any case, I've dropped that test e181a51cbae1 as it wasn't really appropriate for the library - it was testing parser behavior which we weren't relying on and which wasn't even common between parsers. So you should be green as of 3.3.0.
This how the tests are run from debian/ruby-tests.rb Dir['{spec,test}/*/.rb'].each { |f| require f }
Now the whole test session itself exit with same error. I'm using 3.3.1
/usr/bin/ruby1.9.1 -I/usr/lib/ruby/vendor_ruby /usr/lib/ruby/vendor_ruby/gem2deb/test_runner.rb
Running tests for ruby1.9.1 using debian/ruby-tests.rb...
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead.
/tmp/buildd/ruby-roxml-3.3.1/spec/support/nokogiri.rb:2: warning: already initialized constant XML_PARSER
/tmp/buildd/ruby-roxml-3.3.1/spec/support/libxml.rb:2: warning: already initialized constant XML_PARSER
/tmp/buildd/ruby-roxml-3.3.1/lib/roxml.rb:449:in `block (2 levels) in xml_attr': Accessor role is already defined as XML accessor in class Contributor (RuntimeError)
from /tmp/buildd/ruby-roxml-3.3.1/lib/roxml.rb:447:in `tap'
from /tmp/buildd/ruby-roxml-3.3.1/lib/roxml.rb:447:in `block in xml_attr'
from /tmp/buildd/ruby-roxml-3.3.1/lib/roxml.rb:446:in `map'
from /tmp/buildd/ruby-roxml-3.3.1/lib/roxml.rb:446:in `xml_attr'
from /tmp/buildd/ruby-roxml-3.3.1/lib/roxml.rb:462:in `xml_reader'
from /tmp/buildd/ruby-roxml-3.3.1/test/mocks/mocks.rb:26:in `<class:Contributor>'
from /tmp/buildd/ruby-roxml-3.3.1/test/mocks/mocks.rb:23:in `<top (required)>'
from /tmp/buildd/ruby-roxml-3.3.1/test/test_helper.rb:3:in `require_relative'
from /tmp/buildd/ruby-roxml-3.3.1/test/test_helper.rb:3:in `<top (required)>'
from /tmp/buildd/ruby-roxml-3.3.1/test/unit/xml_text_test.rb:1:in `require_relative'
from /tmp/buildd/ruby-roxml-3.3.1/test/unit/xml_text_test.rb:1:in `<top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:182:in `block in require'
from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:547:in `new_constants_in'
from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:182:in `require'
from debian/ruby-tests.rb:7:in `block in <main>'
from debian/ruby-tests.rb:7:in `each'
from debian/ruby-tests.rb:7:in `<main>'
ERROR: Test "ruby1.9.1" failed. Exiting.
test_runner.rb is http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/gem2deb.git;a=blob;f=lib/gem2deb/test_runner.rb;h=5b4a7300562e43e410f61b64686f8a3872710f00;hb=HEAD