spec/spec_helper.rb in mzml-0.2.0 vs spec/spec_helper.rb in mzml-0.2.2
- old
+ new
@@ -16,9 +16,11 @@
mgf.title = $1
when /^\d/
m,i = l.split(' ').map{|e| (e.to_f * 1000).to_i() / 1000.0 }
mgf.mz << m
mgf.intensity << i
+ when /^END IONS/
+ break
end
end
return mgf
end