github.com/scorpionis/hub@v2.2.1+incompatible/features/remote_add.feature (about)

     1  Feature: hub remote add
     2    Background:
     3      Given I am "EvilChelu" on GitHub.com
     4      And I am in "dotfiles" git repo
     5  
     6    Scenario: Add origin remote for my own repo
     7      Given there are no remotes
     8      When I successfully run `hub remote add origin`
     9      Then the url for "origin" should be "git@github.com:EvilChelu/dotfiles.git"
    10      And there should be no output
    11  
    12    Scenario: Unchanged public remote add
    13      When I successfully run `hub remote add origin http://github.com/defunkt/resque.git`
    14      Then the url for "origin" should be "http://github.com/defunkt/resque.git"
    15      And there should be no output
    16  
    17    Scenario: Unchanged private remote add
    18      When I successfully run `hub remote add origin git@github.com:defunkt/resque.git`
    19      Then the url for "origin" should be "git@github.com:defunkt/resque.git"
    20      And there should be no output
    21  
    22    Scenario: Unchanged local path remote add
    23      When I successfully run `hub remote add myremote ./path`
    24      Then the git command should be unchanged
    25      And there should be no output
    26  
    27    Scenario: Unchanged local absolute path remote add
    28      When I successfully run `hub remote add myremote /path`
    29      Then the git command should be unchanged
    30      And there should be no output
    31  
    32    Scenario: Unchanged remote add with host alias
    33      When I successfully run `hub remote add myremote server:/git/repo.git`
    34      Then the git command should be unchanged
    35      And there should be no output
    36  
    37    Scenario: Add new remote for Enterprise repo
    38      Given "git.my.org" is a whitelisted Enterprise host
    39      And the "origin" remote has url "git@git.my.org:mislav/topsekrit.git"
    40      When I successfully run `hub remote add another`
    41      Then the url for "another" should be "git@git.my.org:another/topsekrit.git"
    42      And there should be no output
    43  
    44    Scenario: Add public remote
    45      When I successfully run `hub remote add mislav`
    46      Then the url for "mislav" should be "git://github.com/mislav/dotfiles.git"
    47      And there should be no output
    48  
    49    Scenario: Add private remote
    50      When I successfully run `hub remote add -p mislav`
    51      Then the url for "mislav" should be "git@github.com:mislav/dotfiles.git"
    52      And there should be no output
    53  
    54    Scenario: Remote for my own repo is automatically private
    55      When I successfully run `hub remote add evilchelu`
    56      Then the url for "evilchelu" should be "git@github.com:EvilChelu/dotfiles.git"
    57      And there should be no output
    58  
    59    Scenario: Add remote with arguments
    60      When I successfully run `hub remote add -f mislav`
    61      Then "git remote add -f mislav git://github.com/mislav/dotfiles.git" should be run
    62      And there should be no output
    63  
    64    Scenario: Add HTTPS protocol remote
    65      Given HTTPS is preferred
    66      When I successfully run `hub remote add mislav`
    67      Then the url for "mislav" should be "https://github.com/mislav/dotfiles.git"
    68      And there should be no output
    69  
    70    Scenario: Add named public remote
    71      When I successfully run `hub remote add mm mislav`
    72      Then the url for "mm" should be "git://github.com/mislav/dotfiles.git"
    73      And there should be no output
    74  
    75    Scenario: set-url
    76      Given the "origin" remote has url "git://github.com/evilchelu/dotfiles.git"
    77      When I successfully run `hub remote set-url origin mislav`
    78      Then the url for "origin" should be "git://github.com/mislav/dotfiles.git"
    79      And there should be no output
    80  
    81    Scenario: Add public remote including repo name
    82      When I successfully run `hub remote add mislav/dotfilez.js`
    83      Then the url for "mislav" should be "git://github.com/mislav/dotfilez.js.git"
    84      And there should be no output
    85  
    86    Scenario: Add named public remote including repo name
    87      When I successfully run `hub remote add mm mislav/dotfilez.js`
    88      Then the url for "mm" should be "git://github.com/mislav/dotfilez.js.git"
    89      And there should be no output
    90  
    91    Scenario: Add named private remote
    92      When I successfully run `hub remote add -p mm mislav`
    93      Then the url for "mm" should be "git@github.com:mislav/dotfiles.git"
    94      And there should be no output
    95  
    96    Scenario: Add private remote including repo name
    97      When I successfully run `hub remote add -p mislav/dotfilez.js`
    98      Then the url for "mislav" should be "git@github.com:mislav/dotfilez.js.git"
    99      And there should be no output
   100  
   101    Scenario: Add named private remote including repo name
   102      When I successfully run `hub remote add -p mm mislav/dotfilez.js`
   103      Then the url for "mm" should be "git@github.com:mislav/dotfilez.js.git"
   104      And there should be no output
   105  
   106    Scenario: Add named private remote for my own repo including repo name
   107      When I successfully run `hub remote add ec evilchelu/dotfilez.js`
   108      Then the url for "ec" should be "git@github.com:EvilChelu/dotfilez.js.git"
   109      And there should be no output