Sha256: ebfa6fb7475faedb1a31419aec421c5785334cfa8b0ebe31ed5a0335b219ce52

Contents?: true

Size: 418 Bytes

Versions: 11

Compression:

Stored size: 418 Bytes

Contents

require 'spec_helper'
require 'builder'
require 'ms/mzml/cv'

describe MS::Mzml::CV do
  
  it 'can make CVList xml' do
    cvs = [MS::Mzml::CV::MS, MS::Mzml::CV::UO, MS::Mzml::CV::IMS]
    b = Builder::XmlMarkup.new(:indent => 2)
    MS::Mzml::CV.list_xml(cvs, b)
    xml = b.to_xml
    [/cvList\s+count=/, /id="MS"/, /id="UO"/, /id="IMS"/, /URI="/].each do |regexp|
      xml.should match(regexp)
    end
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mspire-0.6.26 spec/ms/mzml/cv_spec.rb
mspire-0.6.25 spec/ms/mzml/cv_spec.rb
mspire-0.6.24 spec/ms/mzml/cv_spec.rb
mspire-0.6.22 spec/ms/mzml/cv_spec.rb
mspire-0.6.21 spec/ms/mzml/cv_spec.rb
mspire-0.6.20 spec/ms/mzml/cv_spec.rb
mspire-0.6.19 spec/ms/mzml/cv_spec.rb
mspire-0.6.18 spec/ms/mzml/cv_spec.rb
mspire-0.6.12 spec/ms/mzml/cv_spec.rb
mspire-0.6.11 spec/ms/mzml/cv_spec.rb
mspire-0.6.9 spec/ms/mzml/cv_spec.rb