Sha256: d118f400d738ac3442dff89374666e8a7d45076570f2011657f8667d01970cf3

Contents?: true

Size: 492 Bytes

Versions: 8

Compression:

Stored size: 492 Bytes

Contents

require File.expand_path( File.dirname(__FILE__) + '/spec_helper'
 )
require 'gi'


describe GI, "given a 'GI' number" do
  before(:all) do
    @gi_num = 836805
  end
  it 'can query NCBI for annotation (fails nicely w/o connection)' do
    annot = GI.gi2annot([@gi_num])
    if annot
      annot.first.should == 'proteosome component PRE4 [Saccharomyces cerevisiae]'
    else
      puts "- retrieval of gi failed gracefully w/o internet connection"
    end
end

end




Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mspire-0.4.9 specs/gi_spec.rb
mspire-0.3.0 specs/gi_spec.rb
mspire-0.3.9 specs/gi_spec.rb
mspire-0.3.1 specs/gi_spec.rb
mspire-0.4.4 specs/gi_spec.rb
mspire-0.4.2 specs/gi_spec.rb
mspire-0.4.7 specs/gi_spec.rb
mspire-0.4.5 specs/gi_spec.rb