spec/spec_helper.rb in mzml-0.1.0 vs spec/spec_helper.rb in mzml-0.2.0
- old
+ new
@@ -13,10 +13,10 @@
l.chomp!
case l
when /^TITLE=(.+)/
mgf.title = $1
when /^\d/
- m,i = l.split().map{|e| (e.to_f * 1000).to_i() / 1000.0 }
+ m,i = l.split(' ').map{|e| (e.to_f * 1000).to_i() / 1000.0 }
mgf.mz << m
mgf.intensity << i
end
end
return mgf