spec/ms/mzml/plms1_spec.rb in mspire-0.6.18 vs spec/ms/mzml/plms1_spec.rb in mspire-0.6.19
- old
+ new
@@ -21,11 +21,11 @@
plms1.spectra.respond_to?(:each).should be_true
plms1.times.should == times
plms1.scan_numbers.should == scan_nums
plms1.spectra.each do |spec|
spec.size.should == 2
- spec.class.should == MS::Spectrum
+ spec.should be_a_kind_of(MS::SpectrumLike)
spec.mzs.should == []
spec.intensities.should == []
end
#plms1.write("tmp.tmp.bin")
end
@@ -49,10 +49,10 @@
plms1.spectra.respond_to?(:each).should be_true
plms1.times.should == [1981.5726, 1982.1077, 1982.4020999999998]
plms1.scan_numbers.should == [1, 2, 3]
sizes = [20168, 315, 634]
plms1.spectra.zip(sizes).each do |spec,exp_size|
- spec.class.should == MS::Spectrum
+ spec.should be_a_kind_of(MS::SpectrumLike)
spec.size.should == 2
spec.mzs.size.should == exp_size
spec.intensities.size.should == exp_size
end
#plms1.write("tmp.tmp.bin")