Skip to content

Commit

Permalink
Fix test that failed without a local git checkout
Browse files Browse the repository at this point in the history
Fixes #1937
  • Loading branch information
mislav committed Nov 12, 2018
1 parent 6d7f6c1 commit 3b4b15f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions commands/remote_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package commands

import (
"github.com/bmizerany/assert"
"github.com/github/hub/github"
"os"
"regexp"
"testing"

"github.com/bmizerany/assert"
"github.com/github/hub/fixtures"
"github.com/github/hub/github"
)

func TestParseRepoNameOwner(t *testing.T) {
Expand All @@ -19,6 +21,9 @@ func TestParseRepoNameOwner(t *testing.T) {
}

func TestTransformRemoteArgs(t *testing.T) {
repo := fixtures.SetupTestRepo()
defer repo.TearDown()

os.Setenv("HUB_PROTOCOL", "git")
github.CreateTestConfigs("jingweno", "123")

Expand Down

0 comments on commit 3b4b15f

Please sign in to comment.