Default app.Writer to os.Stdout

As NewApp() does.

Fixes #545
This commit is contained in:
Jesse Szwedko
2016-10-18 20:56:31 -07:00
parent 55f715e28c
commit 508a23430b
2 changed files with 10 additions and 0 deletions

View File

@@ -202,6 +202,12 @@ func TestApp_Command(t *testing.T) {
}
}
func TestApp_Setup_defaultsWriter(t *testing.T) {
app := &App{}
app.Setup()
expect(t, app.Writer, os.Stdout)
}
func TestApp_CommandWithArgBeforeFlags(t *testing.T) {
var parsedOption, firstArg string