test/commands/unipept/test_pept2go.rb in unipept-2.2.1 vs test/commands/unipept/test_pept2go.rb in unipept-2.2.2

- old
+ new

@@ -85,11 +85,11 @@ out, err = capture_io_while do Commands::Unipept.run(%w[pept2go --host http://api.unipept.ugent.be --batch 2 --format json >test AALTER AALER >tost AALTER]) end lines = out.each_line assert_equal('', err) - output = lines.to_a.join('').chomp + output = lines.to_a.join.chomp assert(output.start_with?('[')) assert(output.end_with?(']')) assert(!output.include?('}{')) assert(output.include?('fasta_header')) end @@ -98,10 +98,10 @@ out, err = capture_io_while do Commands::Unipept.run(%w[pept2go --host http://api.unipept.ugent.be --batch 2 --format xml >test AALTER AALER >tost AALTER]) end lines = out.each_line assert_equal('', err) - output = lines.to_a.join('').chomp + output = lines.to_a.join.chomp assert(output.start_with?('<results>')) assert(output.end_with?('</results>')) assert(output.include?('<fasta_header>')) end