summarylogtreecommitdiffstats
path: root/url_test.go.patch
diff options
context:
space:
mode:
authorNOGISAKA Sadata2017-09-18 14:17:24 +0900
committerNOGISAKA Sadata2017-09-18 14:17:24 +0900
commit0067c3887768896d03700a015e3789e043021423 (patch)
tree7032f9161941a436cd380d404c0d53b8f03078ca /url_test.go.patch
parent5da9611c0b7bc5b4182e92157468a055dacef5f8 (diff)
downloadaur-0067c3887768896d03700a015e3789e043021423.tar.gz
add url_test.go.patch for passing `go test` (this patch is backported from https://github.com/motemen/ghq/commit/7663e36798657347fc2a03890e70b84d95cc017f)
Diffstat (limited to 'url_test.go.patch')
-rw-r--r--url_test.go.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/url_test.go.patch b/url_test.go.patch
new file mode 100644
index 000000000000..95ff363a6bfc
--- /dev/null
+++ b/url_test.go.patch
@@ -0,0 +1,21 @@
+--- url_test.go.orig 2017-08-22 11:49:51.000000000 +0900
++++ url_test.go 2017-09-18 14:13:08.087122344 +0900
+@@ -3,6 +3,7 @@
+ import (
+ . "github.com/onsi/gomega"
+ "net/url"
++ "os"
+ "testing"
+ )
+
+@@ -36,8 +37,9 @@
+ Expect(differentNameRepository.Host).To(Equal("github.com"))
+ Expect(err).To(BeNil())
+
++ os.Setenv("GITHUB_USER", "ghq-test")
+ sameNameRepository, err := NewURL("same-name-ghq")
+- Expect(sameNameRepository.String()).To(Equal("https://github.com/same-name-ghq/same-name-ghq"))
++ Expect(sameNameRepository.String()).To(Equal("https://github.com/ghq-test/same-name-ghq"))
+ Expect(sameNameRepository.Host).To(Equal("github.com"))
+ Expect(err).To(BeNil())
+ }