Sha256: a53044c2d82ed3a01f2bc9b4827b334fb0a83103aa2c3e0b98a5f64332592fba

Contents?: true

Size: 646 Bytes

Versions: 10

Compression:

Stored size: 646 Bytes

Contents

require 'spec_helper'
require 'builder'

require 'mspire/mzml/file_content'

describe Mspire::Mzml::FileContent do 

  it 'can be initialized with params' do
    filecontent = Mspire::Mzml::FileContent.new(:params => ['MS:1000579', ['IMS:1000080', "{9D501BDC-5344-4916-B7E9-7E795B02C856}"]])

    desc = filecontent.params
    desc.size.should == 2
    desc.all? {|par| par.class == ::CV::Param }.should be_true
    b = Builder::XmlMarkup.new
    filecontent.to_xml(b)
    xml = b.to_xml
    [/<fileContent>/, /cvRef="MS"/, /name="universally/].each do |regexp|
      xml.should match(regexp)
    end
  end

  it 'can be created from xml'

end


Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mspire-0.7.18 spec/mspire/mzml/file_content_spec.rb
mspire-0.7.17 spec/mspire/mzml/file_content_spec.rb
mspire-0.7.13 spec/mspire/mzml/file_content_spec.rb
mspire-0.7.12 spec/mspire/mzml/file_content_spec.rb
mspire-0.7.11 spec/mspire/mzml/file_content_spec.rb
mspire-0.7.10 spec/mspire/mzml/file_content_spec.rb
mspire-0.7.9 spec/mspire/mzml/file_content_spec.rb
mspire-0.7.8 spec/mspire/mzml/file_content_spec.rb
mspire-0.7.7 spec/mspire/mzml/file_content_spec.rb
mspire-0.7.6 spec/mspire/mzml/file_content_spec.rb