Skip to content

Commit

Permalink
Add member and fork interface tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed Jun 8, 2012
1 parent f00e748 commit 43612ca
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 18 deletions.
45 changes: 28 additions & 17 deletions features/executable.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,43 @@ Feature: The GHC Executable
I have access to command line interface

Scenario Outline: Getting Help for Commands
When I run `ghc <command>`
When I run `ghc <cmd>`
Then the exit status should be 0
And the output should contain:
"""
ghc help [TASK]
ghc help <command>
"""
Examples:
| command |
| |
| help |
| cmd |
| |
| help |

Scenario Outline: Getting Subcommands
When I run `ghc <command>`
Then the exit status should be 0
And the output should contain "ghc <command>"

Examples:
| command |
| auth |
| repo |
| issue |
| blob |
| tree |
| ref |
| pull |
| fork |
| commit |
| download |
| key |
| command |
| auth |
| blob |
| commit |
| download |
| email |
| event |
| follower |
| fork |
| gist |
| hook |
| issue |
| key |
| label |
| member |
| milestone |
| org |
| pull |
| ref |
| repo |
| tree |
| user |
| watch |
14 changes: 14 additions & 0 deletions features/fork.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Feature: ghc fork

Scenario Outline: Available commands
When I run `ghc fork`
Then the output should contain "ghc fork <command>"

Examples:
| command |
| create |
| list |

Scenario: List forks
When I run `ghc fork ls wycats thor`
Then the exit status should be 0
22 changes: 22 additions & 0 deletions features/member.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Feature: ghc member

Scenario Outline: Available commands
When I run `ghc member`
Then the output should contain "ghc member <command>"

Examples:
| command |
| conceal |
| delete |
| list |
| member |
| publicize |

Scenario: List an organization members
When I run `ghc member ls rails`
Then the exit status should be 0

Scenario: List an organization public members
When I run `ghc member ls rails --public`
Then the exit status should be 0

2 changes: 1 addition & 1 deletion features/repositories.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ Feature: Repository Commands
I have access to commands

Scenario: List repositories
When I run `ghc repo list --user=wycats`
When I run `ghc repo ls --user=wycats`
Then the exit status should be 0

0 comments on commit 43612ca

Please sign in to comment.