Sha256: ad1254e84012f95ac3e6564f78d6666a324c591abc5ed394493286f0744091d9
Contents?: true
Size: 621 Bytes
Versions: 4
Compression:
Stored size: 621 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 == Mspire::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 end
Version data entries
4 entries across 4 versions & 1 rubygems