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