require 'test/unit' require 'gi' class Gi2AnnotTest < Test::Unit::TestCase ROOT_DIR = File.join(File.dirname(__FILE__), '..') def test_single_query annot = GI.gi2annot([16130548]) if annot assert_equal('CP4-57 prophage; RNase LS [Escherichia coli K12]', annot.first) else assert_nil( puts("SKIPPING gi test (no internet connection available)") ) end end end