[BioRuby-cvs] bioruby/test runner.rb,1.1,1.2

Mitsuteru C. Nakao nakao at pub.open-bio.org
Sun Oct 23 06:40:42 EDT 2005


Update of /home/repository/bioruby/bioruby/test
In directory pub.open-bio.org:/tmp/cvs-serv19147/test

Modified Files:
	runner.rb 
Log Message:
* Fixed bioruby_libpath.


Index: runner.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/runner.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** runner.rb	23 Sep 2005 11:02:50 -0000	1.1
--- runner.rb	23 Oct 2005 10:40:40 -0000	1.2
***************
*** 2,5 ****
--- 2,9 ----
  
  require 'test/unit'
+ require 'pathname'
+ 
+ bioruby_libpath = Pathname.new(File.join(File.dirname(__FILE__), ['..'], 'lib')).cleanpath.to_s
+ $:.unshift(bioruby_libpath) unless $:.include?(bioruby_libpath)
  
  exit Test::Unit::AutoRunner.run(false, File.dirname($0))



More information about the bioruby-cvs mailing list