features/support/env.rb in scaffolder-0.4.3 vs features/support/env.rb in scaffolder-0.4.4

- old
+ new

@@ -5,26 +5,16 @@ $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end -require 'tempfile' +require 'rspec/expectations' +require 'aruba/cucumber' $LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib') require 'scaffolder' -def write_sequence_file(*sequences) - file = Tempfile.new("sequence").path - File.open(file,'w') do |tmp| - sequences.flatten.each do |sequence| - seq = Bio::Sequence.new(sequence[:sequence]) - tmp.print(seq.output(:fasta,:header => sequence[:name])) - end - end - file -end +TMP = "/tmp" -def write_scaffold_file(scaffold) - file = Tempfile.new("scaffold").path - File.open(file,'w'){|tmp| tmp.print(YAML.dump(scaffold))} - file +Before do + @dirs = [TMP] end