> thanks cedric and avtobiff! Now all minitest tests are failing in > pbuilder (git-buildpackage is working) with errors like this.
> 1) Error: > test_0003_should verify that expected request occured(Webmock): > NoMethodError: undefined method `stub_http_request' for > #<#<Class:0x00000002d2d870>:0x00000002d40948> > /tmp/buildd/ruby-webmock-1.17.4/minitest/webmock_spec.rb:7:in > `block (2 levels) in <top (required)>' It seems that something strange happens: I tried to run only the :minitest target, since it was the one with failures. If you look at the command line launching the tests, you'll see that ruby2.0 adds /usr/lib/ruby/2.0.0 to the load path, which makes it prefer its own implementation of minitest, which is I believe the cause of the problem. See for pbuilder: Running tests for ruby2.0 using debian/ruby-tests.rake ... /usr/bin/ruby2.0 -I"lib" -I"/usr/lib/ruby/2.0.0" "/usr/lib/ruby/2.0.0/rake/rake_test_loader.rb" "minitest/test_helper.rb" "minitest/test_webmock.rb" "minitest/webmock_spec.rb" /usr/lib/ruby/2.0.0/minitest/unit.rb:1464: warning: already initialized constant Minitest when compared to sbuild: Running tests for ruby2.0 using debian/ruby-tests.rake ... /usr/bin/ruby2.0 -I"lib" -I"/usr/lib/ruby/vendor_ruby" "/usr/lib/ruby/vendor_ruby/rake/rake_test_loader.rb" "minitest/test_helper.rb" "minitest/test_webmock.rb" "minitest/webmock_spec.rb" Well, in fact, adding rake as a build-dependencie makes it work with pbuilder too. It turns out that I had gem2deb, rake and ruby-rspec installed in my chroot... not sure it is normal :( Cédric
signature.asc
Description: Digital signature