diff options
Diffstat (limited to 'pkg/commands/git_commands/branch_test.go')
-rw-r--r-- | pkg/commands/git_commands/branch_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkg/commands/git_commands/branch_test.go b/pkg/commands/git_commands/branch_test.go index b94f700cc..a6082586c 100644 --- a/pkg/commands/git_commands/branch_test.go +++ b/pkg/commands/git_commands/branch_test.go @@ -128,6 +128,19 @@ func TestBranchMerge(t *testing.T) { expected: []string{"merge", "--no-edit", "--merging-args", "mybranch"}, }, { + testName: "multiple merging args", + userConfig: &config.UserConfig{ + Git: config.GitConfig{ + Merging: config.MergingConfig{ + Args: "--arg1 --arg2", // it's up to the user what they put here + }, + }, + }, + opts: MergeOpts{}, + branchName: "mybranch", + expected: []string{"merge", "--no-edit", "--arg1", "--arg2", "mybranch"}, + }, + { testName: "fast forward only", userConfig: &config.UserConfig{}, opts: MergeOpts{FastForwardOnly: true}, |