require 'test/unit' require 'gi' class Gi2AnnotTest < Test::Unit::TestCase ROOT_DIR = File.join(File.dirname(__FILE__), '..') def test_single_query #begin annot = GI.gi2annot([16130548]).first #rescue puts "SKIPPING gi2annot test since no internet connection available:" puts "#{$!}" assert true #else assert_equal('CP4-57 prophage; RNase LS [Escherichia coli K12]'+"\n", annot) #end end end