diff options
author | Kristijan Husak <husakkristijan@gmail.com> | 2018-10-17 14:20:15 +0200 |
---|---|---|
committer | Kristijan Husak <husakkristijan@gmail.com> | 2018-10-20 11:58:08 +0200 |
commit | 990dc8c4ea1133a58d5c863abd543ee5cde1e700 (patch) | |
tree | 80cee673655645b82f7d76d2cc2be409c16c1c8e /pkg/commands/pull_request_test.go | |
parent | c69fce2e9d28dc847ad5a4528b99682fe61762af (diff) |
Add separate open command for links and check if branch exists on remote before opening pull request link.
Diffstat (limited to 'pkg/commands/pull_request_test.go')
-rw-r--r-- | pkg/commands/pull_request_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/pull_request_test.go b/pkg/commands/pull_request_test.go index 111845e6d..a551ee081 100644 --- a/pkg/commands/pull_request_test.go +++ b/pkg/commands/pull_request_test.go @@ -144,7 +144,7 @@ func TestCreatePullRequest(t *testing.T) { t.Run(s.testName, func(t *testing.T) { gitCommand := newDummyGitCommand() gitCommand.OSCommand.command = s.command - gitCommand.OSCommand.Config.GetUserConfig().Set("os.openCommand", "open {{filename}}") + gitCommand.OSCommand.Config.GetUserConfig().Set("os.openLinkCommand", "open {{link}}") dummyPullRequest := NewPullRequest(gitCommand) s.test(dummyPullRequest.Create(s.branch)) }) |