spec/ms/mzml_spec.rb in mspire-0.6.25 vs spec/ms/mzml_spec.rb in mspire-0.6.26

- old
+ new

@@ -36,9 +36,15 @@ spectrum.ms_level.should == 2 spectrum.should == spectrum1 spectrum.should be_a(MS::Mzml::Spectrum) end + it 'each spectrum knows its retention_time' do + spec = @mzml[1] + rt = @mzml[1].retention_time + rt.should == 33.035128333333333 + end + it 'goes through spectrum with #each or #each_spectrum' do mz_sizes = [20168, 315, 634] centroided = [false, true, true] @mzml.each do |spec| spec.mzs.size.should == mz_sizes.shift