mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-21 01:41:30 +03:00
20 lines
377 B
Go
20 lines
377 B
Go
|
package bugcmd
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/require"
|
||
|
|
||
|
"github.com/MichaelMure/git-bug/commands/bug/testenv"
|
||
|
)
|
||
|
|
||
|
func TestBugRm(t *testing.T) {
|
||
|
env, bugID := testenv.NewTestEnvAndBug(t)
|
||
|
|
||
|
exp := "bug " + bugID.Human() + " removed\n"
|
||
|
|
||
|
require.NoError(t, runBugRm(env, []string{bugID.Human()}))
|
||
|
require.Equal(t, exp, env.Out.String())
|
||
|
env.Out.Reset()
|
||
|
}
|