diff options
author | Rodrigo Villablanca <villa061004@gmail.com> | 2020-01-21 05:27:54 +0300 |
---|---|---|
committer | Rodrigo Villablanca <villa061004@gmail.com> | 2020-01-21 05:27:54 +0300 |
commit | 82a232de040e8820da74e22af0ce0edabb552c7a (patch) | |
tree | e30d014fd8b3552090461fe69b5276eb753e46da /internal | |
parent | ab228134ba71aef8782ef97bb8acc10da202381b (diff) |
Change test
Diffstat (limited to 'internal')
-rw-r--r-- | internal/git/safecmd_test.go | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/internal/git/safecmd_test.go b/internal/git/safecmd_test.go index 4d8689cc5..29a796ca0 100644 --- a/internal/git/safecmd_test.go +++ b/internal/git/safecmd_test.go @@ -174,13 +174,19 @@ func TestSafeCmdValid(t *testing.T) { expectArgs: []string{"noun", "verb", "-", "--adjective"}, }, { + globals: []git.Option{ + git.Flag{"--contributing"}, + git.ValueFlag{"--author", "a-gopher"}, + }, subCmd: git.SubCmd{ - Name: "config", + Name: "accept", + Args: []string{"mr"}, Flags: []git.Option{ - git.ConfigPair{"user.name", "jramsay"}, + git.Flag{Name: "--is-important"}, + git.ValueFlag{"--why", "looking-for-first-contribution"}, }, }, - expectArgs: []string{"config", "user.name", "jramsay"}, + expectArgs: []string{"--contributing", "--author", "a-gopher", "accept", "--is-important", "--why", "looking-for-first-contribution", "mr"}, }, } { cmd, err := git.SafeCmd(ctx, testRepo, tt.globals, tt.subCmd) |