Sha256: 80ec0853e5c4b83b8bbb4228384c160291ead2b35aaf57f696926fec74d12118

Contents?: true

Size: 721 Bytes

Versions: 2

Compression:

Stored size: 721 Bytes

Contents

require 'spec_helper'
require 'mspire/obo'
require 'mspire/obo/header_parser'


describe Mspire::Obo::HeaderParser do
  let(:obo_file) { Mspire::Obo::DIR + "/unit.obo" }

  it 'reads headers from obo files' do
    header = described_class.new.header(obo_file)
    {"format-version"=>["1.2"], "date"=>["12:10:2011 11:21"], "saved-by"=>["George Gkoutos"], "auto-generated-by"=>["OBO-Edit 2.1-beta13"], "subsetdef"=>["unit_group_slim \"unit group slim\"", "unit_slim \"unit slim\""], "default-namespace"=>["unit.ontology"], "namespace-id-rule"=>["* UO:$sequence(7,0,9999999)$"], "import"=>["http://purl.obolibrary.org/obo/pato.obo"]}.each do |key, expect|
      expect(header.tagvalues[key]).to eq expect
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mspire-obo-0.0.4 spec/mspire/obo/header_parser_spec.rb
mspire-obo-0.0.3 spec/mspire/obo/header_parser_spec.rb