mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-14 17:51:44 +03:00
18 lines
313 B
Go
18 lines
313 B
Go
package commands
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestRm(t *testing.T) {
|
|
testEnv, bugID := newTestEnvAndBug(t)
|
|
|
|
exp := "bug " + bugID + " removed\n"
|
|
|
|
require.NoError(t, runRm(testEnv.env, []string{bugID}))
|
|
require.Equal(t, exp, testEnv.out.String())
|
|
testEnv.out.Reset()
|
|
}
|