Sha256: c0f4e4c9956dfc6ea1fcb433bdbc92c5b6773a81bf9f866d1330383fe4b8328c
Contents?: true
Size: 605 Bytes
Versions: 11
Compression:
Stored size: 605 Bytes
Contents
require 'spec_helper' require 'builder' require 'ms/mzml/file_content' describe MS::Mzml::FileContent do it 'can be initialized with params' do filecontent = MS::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 == MS::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
11 entries across 11 versions & 1 rubygems