features/cli/init.feature in genomer-0.0.7 vs features/cli/init.feature in genomer-0.0.8

- old
+ new

@@ -4,10 +4,15 @@ So that they can use the genomer commands and organise their data Scenario: Creating a new project When I run the genomer command with the arguments "init project" Then the exit status should be 0 + And the stdout should contain: + """ + Genomer project 'project' created. + + """ And a directory named "project" should exist And a directory named "project/assembly" should exist And a file named "project/assembly/scaffold.yml" should exist And the file "project/assembly/scaffold.yml" should contain exactly: """ @@ -64,6 +69,15 @@ When I run the genomer command with the arguments "simple describe" Then the exit status should be 0 And the output should contain: """ The scaffold contains 1 entries + """ + + Scenario: Creating a new project where the directory already exists + Given a directory named "project" + When I run the genomer command with the arguments "init project" + Then the exit status should be 1 + And the stderr should contain: + """ + Error. Directory 'project' already exists. """