提交 46b5cca7 编写于 作者: J Jingwen Owen Ou

Fix spec failed for windows path

上级 104d9362
......@@ -14,7 +14,7 @@ func TestTransformApplyArgs(t *testing.T) {
cmds := args.Commands()
assert.Equal(t, 2, len(cmds))
curlString := fmt.Sprintf("curl -#LA %s https://github.com/jingweno/gh/pull/55.patch -o .+/55.patch", fmt.Sprintf("gh %s", Version))
curlString := fmt.Sprintf("curl -#LA %s https://github.com/jingweno/gh/pull/55.patch -o .+55.patch", fmt.Sprintf("gh %s", Version))
curlRegexp := regexp.MustCompile(curlString)
applyString := "git apply"
assert.T(t, curlRegexp.MatchString(cmds[0].String()))
......@@ -25,7 +25,7 @@ func TestTransformApplyArgs(t *testing.T) {
cmds = args.Commands()
assert.Equal(t, 2, len(cmds))
curlString = fmt.Sprintf("curl -#LA %s https://github.com/jingweno/gh/commit/fdb9921.patch -o .+/fdb9921.patch", fmt.Sprintf("gh %s", Version))
curlString = fmt.Sprintf("curl -#LA %s https://github.com/jingweno/gh/commit/fdb9921.patch -o .+fdb9921.patch", fmt.Sprintf("gh %s", Version))
curlRegexp = regexp.MustCompile(curlString)
applyString = "git apply --ignore-whitespace"
assert.T(t, curlRegexp.MatchString(cmds[0].String()))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册