Sha256: 00ccd421bc72188e1ca78da147d4a4c2418d82c1462a81f009e530dde4e9e8db
Contents?: true
Size: 912 Bytes
Versions: 6
Compression:
Stored size: 912 Bytes
Contents
require File.expand_path( File.dirname(__FILE__) + '/../spec_helper' ) describe 'ms_to_lmat.rb' do before(:all) do @progname = 'ms_to_lmat.rb' @mzxml = Tfiles + "/opd1/twenty_scans.mzXML" @ans_lmata = Tfiles + "/opd1/twenty_scans_answ.lmata" @ans_lmat = Tfiles + "/opd1/twenty_scans_answ.lmat" end it_should_behave_like "a cmdline program" it 'creates the correct lmata (ascii) file' do cmd = "#{@cmd} #{@mzxml} --ascii" `#{cmd}` newfile = @mzxml.sub(".mzXML", ".lmata") newfile.exist_as_a_file?.should be_true IO.read(newfile).should == IO.read(@ans_lmata) File.unlink(newfile) end it 'creates the correct lmat (binary) file' do cmd = "#{@cmd} #{@mzxml}" `#{cmd}` newfile = @mzxml.sub(".mzXML", ".lmat") newfile.exist_as_a_file?.should be_true IO.read(newfile).should == IO.read(@ans_lmat) File.unlink(newfile) end end
Version data entries
6 entries across 6 versions & 1 rubygems