Sha256: 20c320a559f758a20f2223547c876baff769c8ba56cfa09d2faff6883368c305
Contents?: true
Size: 1.13 KB
Versions: 3
Compression:
Stored size: 1.13 KB
Contents
require File.expand_path(File.join(File.dirname(__FILE__),'..','..','spec_helper')) describe Scaffolder::Tool::Sequence do it "should inherit from Scaffolder::Tool" do described_class.superclass.should == Scaffolder::Tool end it "should return the description of the tool" do desc = "Generate the fasta output for the scaffold" described_class.description.should == desc end describe "execution when correctly instantiated" do before(:each) do entries = [{:name => 'seq1', :nucleotides => 'ATGC'}] @scaffold_file = File.new("scaffold",'w').path @sequence_file = File.new("sequence",'w').path write_scaffold_file(entries,@scaffold_file) write_sequence_file(entries,@sequence_file) settings = mock_command_line_settings(@scaffold_file,@sequence_file,{ :definition => nil,:no => nil}) tool = described_class.new(settings) @output = StringIO.new(tool.execute) end after(:each) do File.delete @scaffold_file, @sequence_file end it "should return the expected sequence" do Bio::FlatFile.auto(@output).first.seq.should == 'ATGC' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
scaffolder-tools-0.1.2 | spec/scaffolder/tool/sequence_spec.rb |
scaffolder-tools-0.1.1 | spec/scaffolder/tool/sequence_spec.rb |
scaffolder-tools-0.1.0 | spec/scaffolder/tool/sequence_spec.rb |