Logo: Relish

  1. Sign in

Project: Poet

Running the program

Scenarios
User runs the program
Given
a file named "test" with:
Host te.st
  User me
When
I run poet
Then
the exit status should be 0
And
the file "ssh_config" should contain "Host te.st"
User wants her own files not to be overwritten
Given
a file named "important" with:
This is absolutely vital information
When
I run poet -o important
Then
the output from "poet -o important" should contain "Found hand-crafted ssh_config"
And
the exit status should not be 0
And
the file "important" should contain "This is absolutely vital information"
User wants sensible warnings
Given
a file named "test" with:
Host te.st
  User me
When
I run poet --dir missing
Then
the output from "poet --dir missing" should contain "missing does not exist"
And
the exit status should not be 0

Last published about 7 years ago by awendt.