aboutsummaryrefslogtreecommitdiffstats
path: root/commands/rm_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/rm_test.go')
-rw-r--r--commands/rm_test.go18
1 files changed, 10 insertions, 8 deletions
diff --git a/commands/rm_test.go b/commands/rm_test.go
index e8b53057..5d4e7cca 100644
--- a/commands/rm_test.go
+++ b/commands/rm_test.go
@@ -1,15 +1,17 @@
-package commands_test
+package commands
-import "testing"
+import (
+ "testing"
+
+ "github.com/stretchr/testify/require"
+)
func TestRm(t *testing.T) {
testEnv, _, bugID := newTestEnvUserAndBug(t)
- testEnv.cmd.SetArgs([]string{
- "rm",
- bugID,
- })
+ exp := "bug " + bugID + " removed\n"
- testEnv.Execute(t)
- // TODO: add assertions after #778 is diagnosed and fixed
+ require.NoError(t, runRm(testEnv.env, []string{bugID}))
+ require.Equal(t, exp, testEnv.out.String())
+ testEnv.out.Reset()
}