test/unit/bio/appl/bl2seq/test_report.rb in bio-1.3.1 vs test/unit/bio/appl/bl2seq/test_report.rb in bio-1.4.0
- old
+ new
@@ -7,21 +7,22 @@
# License:: The Ruby License
#
# $Id:$
#
+# loading helper routine for testing bioruby
require 'pathname'
-libpath = Pathname.new(File.join(File.join(File.dirname(__FILE__), ['..'] * 5, 'lib'))).cleanpath.to_s
-$:.unshift(libpath) unless $:.include?(libpath)
+load Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 4,
+ 'bioruby_test_helper.rb')).cleanpath.to_s
+# libraries needed for the tests
require 'test/unit'
require 'bio/appl/bl2seq/report'
module Bio
class TestBl2seqReportData
- bioruby_root = Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 5)).cleanpath.to_s
- TestDataBl2seq = Pathname.new(File.join(bioruby_root, 'test', 'data', 'bl2seq')).cleanpath.to_s
+ TestDataBl2seq = Pathname.new(File.join(BioRubyTestDataPath, 'bl2seq')).cleanpath.to_s
def self.output(format = 7)
case format
when 'empty'
File.open(File.join(TestDataBl2seq, 'cd8a_p53_e-5blastp.bl2seq')).read