-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf166ad
commit 96ef12d
Showing
14 changed files
with
92 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
#shellcheck shell=bash | ||
|
||
Describe 'jimbo' | ||
Describe 'rambo' | ||
It 'fails when invoked without arguments' | ||
When call jimbo | ||
When call rambo | ||
|
||
The status should be failure | ||
The error should include 'Missing argument: command. Try --help for more information' | ||
End | ||
|
||
It 'fails when command not found' | ||
When call jimbo hello | ||
When call rambo hello | ||
|
||
The status should be failure | ||
The error should include 'Unknown command: hello' | ||
End | ||
|
||
It 'fails when invalid option specified' | ||
When call jimbo --hello | ||
When call rambo --hello | ||
|
||
The status should be failure | ||
The error should include 'Unknown option: --hello' | ||
End | ||
|
||
It 'shows help when -h option specified' | ||
When call jimbo -h | ||
When call rambo -h | ||
|
||
The status should be success | ||
The output should start with 'jimbo: simple backup tool for web sites' | ||
The output should start with 'rambo: simple backup tool for web sites' | ||
End | ||
|
||
It 'shows help when --help option specified' | ||
When call jimbo --help | ||
When call rambo --help | ||
|
||
The status should be success | ||
The output should start with 'jimbo: simple backup tool for web sites' | ||
The output should start with 'rambo: simple backup tool for web sites' | ||
End | ||
|
||
It 'executes specified command' | ||
When call jimbo help | ||
When call rambo help | ||
|
||
The status should be success | ||
The output should start with 'jimbo: simple backup tool for web sites' | ||
The output should start with 'rambo: simple backup tool for web sites' | ||
End | ||
End |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.