[Rubygems-developers] RubyGems Alpha II?

Mauricio Fernández batsman.geo at yahoo.com
Wed Mar 31 11:12:15 EST 2004

On Tue, Mar 30, 2004 at 11:25:15PM -0000, Jim Weirich wrote:
> Some test issues.  Currently, the tests do not do a good job of separating
> the installed code from the code in the working directory.  Ideally, the
> unit tests should work only on the code in the working directory.  I just
> tried the tests and got the 2 failures/3 errors listed above.  Then I
> installed the working directory code and errors went down to 1 (apparently
> expected) failure.  This tells me we are testing the installed stuff.
> We can correct that through careful use of the -I directive when you start
> the tests.

I forgot to apply this on the new wd:

diff -ru rubygems/test/test_all.rb rubygems.new/test/test_all.rb
--- rubygems/test/test_all.rb   2004-03-29 01:53:20.000000000 +0200
+++ rubygems.new/test/test_all.rb       2004-03-27 10:58:07.000000000 +0200
@@ -1,4 +1,4 @@
-require 'test/test_version_comparison'
-require 'test/test_validator'
-require 'test/test_cache'
-#require 'test/test_remote_installer'
+#!/usr/bin/env ruby
+$:.unshift "../lib"
+(Dir["test_*.rb"] - ["test_all.rb"]).each {|f| require f}

batsman at tux-chan:/tmp/rubygems.new/test$ ruby test_all.rb
../lib/rubygems/specification.rb:243: warning: instance variable @autorequire not initialized
/home/batsman/usr/lib/ruby/1.8/yaml/rubytypes.rb:27: warning: instance variable @require_paths not initialized
(eval):1: warning: method redefined; discarding old test_wn_0
(eval):1: warning: method redefined; discarding old test_wn_1
Loaded suite test_all
Finished in 1.982999 seconds.

  1) Error:
RuntimeError: Could not find foo > 0.0.0 in the repository
    ../lib/rubygems/remote_installer.rb:96:in `find_latest_valid_package_in_caches'
    ../lib/rubygems/remote_installer.rb:26:in `install'
    ./test_remote_installer.rb:103:in `test_install'

  2) Failure:
test_search_with_full_gem_name_in_mixed_case_returns_gem(TestCache) [./test_cache.rb:33]:
This is failing because we have duplication between remote_installer and cache.rb.  We should factor remote_installer's search logic out into cache.rb's search and delegate from remote_installer to cache.rb.
<0> expected but was

56 tests, 53 assertions, 1 failures, 1 errors

Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com

I've no idea when Linus is going to release 2.0.24, but if he takes
too long Im going to release a 2.0.24unoff and he can sound off all
he likes.
	-- Alan Cox

More information about the Rubygems-developers mailing list