Sha256: fe19ff53b504c9298f9ab1172eb085b954b9f029c0f4bc8c4c73dce637319a0f

Contents?: true

Size: 809 Bytes

Versions: 21

Compression:

Stored size: 809 Bytes

Contents

require 'spec_helper'

require 'obo/ms'
require 'obo/ims'
require 'obo/unit'

describe 'accessing a specific Obo::Ontology' do
  it 'can access MS obo' do
    Obo::MS.id_to_name['MS:1000004'].should == 'sample mass'
    Obo::MS.name_to_id['sample mass'].should == 'MS:1000004'
    Obo::MS.id_to_element['MS:1000004'].should be_a(Obo::Stanza)
  end

  it 'can access IMS obo' do
    Obo::IMS.id_to_name['IMS:1000004'].should == 'image'
    Obo::IMS.name_to_id['image'].should == 'IMS:1000004'
    Obo::IMS.id_to_element['IMS:1000004'].should be_a(Obo::Stanza)
  end

  it 'can access Unit obo' do
    Obo::Unit.id_to_name['UO:0000005'].should == 'temperature unit'
    Obo::Unit.name_to_id['temperature unit'].should == 'UO:0000005'
    Obo::Unit.id_to_element['UO:0000005'].should be_a(Obo::Stanza)
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
mspire-0.7.7 spec/obo_spec.rb
mspire-0.7.6 spec/obo_spec.rb
mspire-0.7.5 spec/obo_spec.rb
mspire-0.7.4 spec/obo_spec.rb
mspire-0.7.3 spec/obo_spec.rb
mspire-0.7.2 spec/obo_spec.rb
mspire-0.6.26 spec/obo_spec.rb
mspire-0.6.25 spec/obo_spec.rb
mspire-0.6.24 spec/obo_spec.rb
mspire-0.6.22 spec/obo_spec.rb
mspire-0.6.21 spec/obo_spec.rb
mspire-0.6.20 spec/obo_spec.rb
mspire-0.6.19 spec/obo_spec.rb
mspire-0.6.18 spec/obo_spec.rb
mspire-0.6.12 spec/obo_spec.rb
mspire-0.6.11 spec/obo_spec.rb
mspire-0.6.9 spec/obo_spec.rb
mspire-0.6.7 spec/obo_spec.rb
mspire-0.6.6 spec/obo_spec.rb
mspire-0.6.2 spec/obo_spec.rb