github.com/trevoraustin/hub@v2.2.0-preview1.0.20141105230840-96d8bfc654cc+incompatible/github/localrepo_test.go (about) 1 package github 2 3 import ( 4 "testing" 5 6 "github.com/bmizerany/assert" 7 "github.com/github/hub/fixtures" 8 ) 9 10 func TestGitHubRepo_OriginRemote(t *testing.T) { 11 repo := fixtures.SetupTestRepo() 12 defer repo.TearDown() 13 14 localRepo, _ := LocalRepo() 15 gitRemote, _ := localRepo.OriginRemote() 16 assert.Equal(t, "origin", gitRemote.Name) 17 assert.Equal(t, repo.Remote, gitRemote.URL.String()) 18 }