features/api/annotation_ids.feature in genomer-0.0.6 vs features/api/annotation_ids.feature in genomer-0.0.7

- old
+ new

@@ -5,29 +5,29 @@ @disable-bundler Scenario: Adding a prefix to annotation IDs Given I run the genomer command with the arguments "init project" And I cd to "project" - And I append to "Gemfile" with: + And I overwrite "Gemfile" with: """ gem 'genomer', :path => '../../../' gem 'genomer-plugin-simple', :path => '../../../genomer-plugin-simple' """ - And I append to "assembly/scaffold.yml" with: + And I overwrite "assembly/scaffold.yml" with: """ --- - sequence: source: contig1 """ - And I append to "assembly/sequence.fna" with: + And I overwrite "assembly/sequence.fna" with: """ >contig1 ATGCATGC """ - And I append to "assembly/annotations.gff" with: + And I overwrite "assembly/annotations.gff" with: """ ##gff-version 3 contig1 . gene 1 4 . + 1 ID=gene1 contig1 . gene 5 8 . + 1 ID=gene2 """ @@ -42,29 +42,29 @@ @disable-bundler Scenario: Reset locus tag numbering from the sequence start Given I run the genomer command with the arguments "init project" And I cd to "project" - And I append to "Gemfile" with: + And I overwrite "Gemfile" with: """ gem 'genomer', :path => '../../../' gem 'genomer-plugin-simple', :path => '../../../genomer-plugin-simple' """ - And I append to "assembly/scaffold.yml" with: + And I overwrite "assembly/scaffold.yml" with: """ --- - sequence: source: contig1 """ - And I append to "assembly/sequence.fna" with: + And I overwrite "assembly/sequence.fna" with: """ >contig1 ATGCATGC """ - And I append to "assembly/annotations.gff" with: + And I overwrite "assembly/annotations.gff" with: """ ##gff-version 3 contig1 . gene 1 4 . + 1 ID=gene1 contig1 . gene 5 8 . + 1 ID=gene2 """ @@ -79,29 +79,29 @@ @disable-bundler Scenario: Reset locus tag numbering with at a specific value Given I run the genomer command with the arguments "init project" And I cd to "project" - And I append to "Gemfile" with: + And I overwrite "Gemfile" with: """ gem 'genomer', :path => '../../../' gem 'genomer-plugin-simple', :path => '../../../genomer-plugin-simple' """ - And I append to "assembly/scaffold.yml" with: + And I overwrite "assembly/scaffold.yml" with: """ --- - sequence: source: contig1 """ - And I append to "assembly/sequence.fna" with: + And I overwrite "assembly/sequence.fna" with: """ >contig1 ATGCATGC """ - And I append to "assembly/annotations.gff" with: + And I overwrite "assembly/annotations.gff" with: """ ##gff-version 3 contig1 . gene 1 4 . + 1 ID=gene1 contig1 . gene 5 8 . + 1 ID=gene2 """ @@ -116,28 +116,28 @@ @disable-bundler Scenario: Reseting locus tag numbering and adding a prefix Given I run the genomer command with the arguments "init project" And I cd to "project" - And I append to "Gemfile" with: + And I overwrite "Gemfile" with: """ gem 'genomer', :path => '../../../' gem 'genomer-plugin-simple', :path => '../../../genomer-plugin-simple' """ - And I append to "assembly/scaffold.yml" with: + And I overwrite "assembly/scaffold.yml" with: """ --- - sequence: source: contig1 """ - And I append to "assembly/sequence.fna" with: + And I overwrite "assembly/sequence.fna" with: """ >contig1 ATGCATGC """ - And I append to "assembly/annotations.gff" with: + And I overwrite "assembly/annotations.gff" with: """ ##gff-version 3 contig1 . gene 1 4 . + 1 ID=gene1 contig1 . gene 5 8 . + 1 ID=gene2 """