github.com/trevoraustin/hub@v2.2.0-preview1.0.20141105230840-96d8bfc654cc+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: Enterprise host
    12      Given $GITHUB_HOST is "git.my.org"
    13      And I am "mislav" on git.my.org with OAuth token "FITOKEN"
    14      And "git.my.org" is a whitelisted Enterprise host
    15      When I successfully run `hub init -g`
    16      Then the url for "origin" should be "git@git.my.org:mislav/dotfiles.git"