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