Sha256: a9b1f8ef4ebb53ff0af5ce7d8c48861d589f9f47c47be8781378edc79973dc93
Contents?: true
Size: 1.58 KB
Versions: 2
Compression:
Stored size: 1.58 KB
Contents
require 'spec_helper' testfasta="spec/test_files/test.fa" testbam="spec/test_files/test.bam" describe "bin executable" do it "runs the --help option" do c=NGSCI::Cmd.new("bundle exec bin/ngs-ci --help") c.run expect(c.stdout).to match /DESCRIPTION/ expect(c.status).to be_success end context "non-existent input files" do it "fails on a non-existent bam file" do c=NGSCI::Cmd.new("bundle exec bin/ngs-ci --bam foo.bam --reference #{testfasta}") c.run expect(c.status).to_not be_success end it "fails on a non-existent fasta file" do c=NGSCI::Cmd.new("bundle exec bin/ngs-ci --bam #{testbam} --reference foo.fasta") c.run expect(c.status).to_not be_success end end context "improper options" do it "fails on improper strand-specific argument" do c=NGSCI::Cmd.new("bundle exec bin/ngs-ci --bam #{testbam} --reference #{testfasta} --strand G") c.run expect(c.status).to_not be_success end it "fails on improper loglevel argument" do c=NGSCI::Cmd.new("bundle exec bin/ngs-ci --bam #{testbam} --reference #{testfasta} --loglevel foo") c.run expect(c.status).to_not be_success end end it "runs on test data" do c=NGSCI::Cmd.new("bundle exec bin/ngs-ci --bam #{testbam} --reference #{testfasta} --strand F") c.run expect(c.status).to be_success end it "produces speed information" do c=NGSCI::Cmd.new("bundle exec bin/ngs-ci --bam #{testbam} --reference #{testfasta} --loglevel debug") c.run expect(c.stdout).to include("Measure Mode:") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ngs-ci-0.0.2.b | spec/lib/bin_spec.rb |
ngs-ci-0.0.1.a | spec/lib/bin_spec.rb |