aboutsummaryrefslogblamecommitdiffstats
path: root/commands/rm_test.go
blob: 5d4e7cca1007d336e891b96c0550c2da501d3182 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                
 




                                             



                                                    
                                            
 


                                                               
 
package commands

import (
	"testing"

	"github.com/stretchr/testify/require"
)

func TestRm(t *testing.T) {
	testEnv, _, bugID := newTestEnvUserAndBug(t)

	exp := "bug " + bugID + " removed\n"

	require.NoError(t, runRm(testEnv.env, []string{bugID}))
	require.Equal(t, exp, testEnv.out.String())
	testEnv.out.Reset()
}