features/todo.feature in gli-2.12.1 vs features/todo.feature in gli-2.12.2
- old
+ new
@@ -13,12 +13,12 @@
Then the output should contain:
"""
error: Unknown command 'unknown'. Use 'todo help' for a list of commands.
"""
- Scenario Outline: Getting Help for todo in general
- When I successfully run `todo <help>`
+ Scenario: Getting Help for todo in general
+ When I successfully run `todo help`
Then the exit status should be 0
Then the output should contain:
"""
NAME
todo - Manages tasks
@@ -50,13 +50,10 @@
ls - LS things, such as tasks or contexts
make -
second -
third -
"""
- Examples:
- | help |
- | help |
Scenario: Version display
When I successfully run `todo --version`
Then the output should contain:
"""
@@ -176,10 +173,12 @@
list - List things, such as tasks or contexts
ls - LS things, such as tasks or contexts
"""
Scenario Outline: Getting Help for a top level command of todo
+ # No idea why I have to do this again.
+ Given todo's bin directory is in my path
When I successfully run `todo <help_invocation>`
Then the output should contain:
"""
NAME
list - List things, such as tasks or contexts
@@ -542,5 +541,10 @@
SYNOPSIS
todo [global options] second [argument]
"""
+ Scenario: Generate app documentation
+ When I run `todo _doc`
+ Then the exit status should be 0
+ And a file named "todo.rdoc" should exist
+ And the file "todo.rdoc" should contain "Lists all of your contexts, which are places you might be"