File: git_compatibility.feature

package info (click to toggle)
hub 2.14.2~ds1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,376 kB
  • sloc: sh: 1,049; ruby: 857; makefile: 89
file content (39 lines) | stat: -rw-r--r-- 1,046 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Feature: git-hub compatibility
  Scenario: If alias named branch exists, it should not be expanded.
    Given I am in "git://github.com/rtomayko/ronn.git" git repo
    And the default branch for "origin" is "master"
    When I successfully run `git config --global alias.branch "branch -a"`
    When I run `hub branch`
    Then the stdout should contain exactly "* master\n"

  Scenario: List commands
    When I successfully run `hub --list-cmds=others`
    Then the stdout should contain exactly:
      """
      add
      branch
      commit
      alias
      api
      browse
      ci-status
      compare
      create
      delete
      fork
      gist
      issue
      pr
      pull-request
      release
      sync\n
      """

  Scenario: Doesn't sabotage --exec-path
    When I successfully run `hub --exec-path`
    Then the output should not contain "These GitHub commands"

  Scenario: Shows help with --git-dir
    When I run `hub --git-dir=.git`
    Then the exit status should be 1
    And the output should contain "usage: git "