forked from troessner/reek
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cucumber scenarios for reek command-line options
- Loading branch information
1 parent
93ee686
commit 5c1055a
Showing
4 changed files
with
40 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@options | ||
Feature: Reek can be controlled using command-line options | ||
In order to change reek's default behaviour | ||
As a developer | ||
I want to supply options on the command line | ||
|
||
Scenario: return non-zero status on bad option | ||
When I run reek --no-such-option | ||
Then it fails with exit status 1 | ||
And it displays the error message: | ||
""" | ||
Error: invalid option: --no-such-option | ||
""" | ||
|
||
Scenario: return non-zero status on missing argument | ||
When I run reek -f | ||
Then it fails with exit status 1 | ||
And it displays the error message: | ||
""" | ||
Error: missing argument: -f | ||
""" | ||
|
||
Scenario: display the current version number | ||
When I run reek --version | ||
Then it succeeds | ||
And it reports the current version |
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