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

     1  Feature: hub init
     2    Background:
     3      Given I am "mislav" on github.com with OAuth token "OTOKEN"
     4      Given a directory named "dotfiles"
     5      When I cd to "dotfiles"
     6  
     7    Scenario: Initializes a git repo with remote
     8      When I successfully run `hub init -g`
     9      Then the url for "origin" should be "git@github.com:mislav/dotfiles.git"
    10  
    11    Scenario: Initializes a git repo in a new directory with remote
    12      When I successfully run `hub init -g new_dir`
    13      And I cd to "new_dir"
    14      Then the url for "origin" should be "git@github.com:mislav/new_dir.git"
    15  
    16    Scenario: Enterprise host
    17      Given $GITHUB_HOST is "git.my.org"
    18      And I am "mislav" on git.my.org with OAuth token "FITOKEN"
    19      And "git.my.org" is a whitelisted Enterprise host
    20      When I successfully run `hub init -g`
    21      Then the url for "origin" should be "git@git.my.org:mislav/dotfiles.git"