Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
winpat committed Jun 29, 2017
1 parent b29ae1d commit 53bd48a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ func (c *ShowCommand) Run(args []string) int {
secret.Data[key])
}

c.Ui.Output(output)

return 0
}

Expand Down
2 changes: 1 addition & 1 deletion src/show_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func TestShow(t *testing.T) {
t.Fatalf("expected error:\n%s\n\nto include: %q", actual, expectedErr)
}

expectedOutput := "key: value"
expectedOutput := "key: value"
if actual := ui.OutputWriter.String(); !strings.Contains(actual, expectedOutput) {
t.Fatalf("expected output:\n%s\n\nto include: %q", actual, expectedOutput)
}
Expand Down

0 comments on commit 53bd48a

Please sign in to comment.