summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git_commands/tag_loader_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/commands/git_commands/tag_loader_test.go')
-rw-r--r--pkg/commands/git_commands/tag_loader_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/commands/git_commands/tag_loader_test.go b/pkg/commands/git_commands/tag_loader_test.go
index 61b55d018..59c4d0337 100644
--- a/pkg/commands/git_commands/tag_loader_test.go
+++ b/pkg/commands/git_commands/tag_loader_test.go
@@ -26,14 +26,14 @@ func TestGetTags(t *testing.T) {
{
testName: "should return no tags if there are none",
runner: oscommands.NewFakeRunner(t).
- Expect(`git tag --list -n --sort=-creatordate`, "", nil),
+ ExpectGitArgs([]string{"tag", "--list", "-n", "--sort=-creatordate"}, "", nil),
expectedTags: []*models.Tag{},
expectedError: nil,
},
{
testName: "should return tags if present",
runner: oscommands.NewFakeRunner(t).
- Expect(`git tag --list -n --sort=-creatordate`, tagsOutput, nil),
+ ExpectGitArgs([]string{"tag", "--list", "-n", "--sort=-creatordate"}, tagsOutput, nil),
expectedTags: []*models.Tag{
{Name: "tag1", Message: "this is my message"},
{Name: "tag2", Message: ""},