require 'test/unit' require 'gi' class Gi2AnnotTest < Test::Unit::TestCase ROOT_DIR = File.join(File.dirname(__FILE__), '..') def test_single_query annot = GI.gi2annot([836805]) if annot assert_equal('proteosome component PRE4 [Saccharomyces cerevisiae]', annot.first) else assert_nil( puts("SKIPPING gi test (no internet connection available)") ) end end end