test/commands/unipept/test_taxa2lca.rb in unipept-1.1.2 vs test/commands/unipept/test_taxa2lca.rb in unipept-1.1.3

- old
+ new

@@ -20,49 +20,49 @@ out, _err = capture_io_while do assert_raises SystemExit do Commands::Unipept.run(%w(taxa2lca -h)) end end - assert(out.include? 'show help for this command') + assert(out.include?('show help for this command')) out, _err = capture_io_while do assert_raises SystemExit do Commands::Unipept.run(%w(taxa2lca --help)) end end - assert(out.include? 'show help for this command') + assert(out.include?('show help for this command')) end def test_run out, err = capture_io_while do Commands::Unipept.run(%w(taxa2lca --host http://api.unipept.ugent.be 216816 1680)) end lines = out.each_line assert_equal('', err) - assert(lines.next.start_with? 'taxon_id,taxon_name,taxon_rank') - assert(lines.next.start_with? '1678,Bifidobacterium,genus') + assert(lines.next.start_with?('taxon_id,taxon_name,taxon_rank')) + assert(lines.next.start_with?('1678,Bifidobacterium,genus')) end def test_run_xml out, err = capture_io_while do Commands::Unipept.run(%w(taxa2lca --host http://api.unipept.ugent.be --format xml 216816 1680)) end lines = out.each_line output = lines.to_a.join('').chomp assert_equal('', err) - assert(output.start_with? '<results>') - assert(output.end_with? '</results>') + assert(output.start_with?('<results>')) + assert(output.end_with?('</results>')) end def test_run_json out, err = capture_io_while do Commands::Unipept.run(%w(taxa2lca --host http://api.unipept.ugent.be --format json 216816 1680)) end lines = out.each_line output = lines.to_a.join('').chomp assert_equal('', err) - assert(output.start_with? '[') - assert(output.end_with? ']') + assert(output.start_with?('[')) + assert(output.end_with?(']')) assert(!output.include?('}{')) assert(!output.include?('][')) end end end