[BioRuby-cvs] bioruby/test/unit/bio/db test_soft.rb,1.1,1.2

Trevor Wennblom trevor at dev.open-bio.org
Thu Mar 29 03:18:28 UTC 2007


Update of /home/repository/bioruby/bioruby/test/unit/bio/db
In directory dev.open-bio.org:/tmp/cvs-serv9457/test/unit/bio/db

Modified Files:
	test_soft.rb 
Log Message:
Fix path resolution for SOFT tests.

Index: test_soft.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/db/test_soft.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_soft.rb	2 Feb 2007 06:13:10 -0000	1.1
--- test_soft.rb	29 Mar 2007 03:18:26 -0000	1.2
***************
*** 20,25 ****
      
      def setup
!       @obj_series = Bio::SOFT.new( IO.readlines('../../../data/soft/GSE3457_family_partial.soft'))      
!       @obj_dataset = Bio::SOFT.new( IO.readlines('../../../data/soft/GDS100_partial.soft'))
      end
  
--- 20,30 ----
      
      def setup
!       bioruby_root = Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 4)).cleanpath.to_s
!       test_data_path = Pathname.new(File.join(bioruby_root, 'test', 'data', 'soft')).cleanpath.to_s
!       series_filename = File.join(test_data_path, 'GSE3457_family_partial.soft')
!       dataset_filename = File.join(test_data_path, 'GDS100_partial.soft')
! 
!       @obj_series = Bio::SOFT.new( IO.readlines(series_filename))
!       @obj_dataset = Bio::SOFT.new( IO.readlines(dataset_filename))
      end
  
***************
*** 131,133 ****
    end
  
! end
\ No newline at end of file
--- 136,138 ----
    end
  
! end




More information about the bioruby-cvs mailing list