blob: 210a4b0b439a2d798c0ad72bbade890b886c5101 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package bugcmd
import (
"testing"
"github.com/stretchr/testify/require"
"github.com/MichaelMure/git-bug/commands/bug/testenv"
)
func TestBugNew(t *testing.T) {
env, _ := testenv.NewTestEnvAndUser(t)
err := runBugNew(env, bugNewOptions{
nonInteractive: true,
message: "message",
title: "title",
})
require.NoError(t, err)
require.Regexp(t, "^[0-9A-Fa-f]{7} created\n$", env.Out.String())
}
|