Rename Stdout -> Writer

This commit is contained in:
jszwedko
2014-12-01 23:50:04 -05:00
parent 60e3dcaf6d
commit 0d4870d63e
4 changed files with 22 additions and 22 deletions

View File

@@ -265,7 +265,7 @@ func TestApp_ParseSliceFlags(t *testing.T) {
func TestApp_DefaultStdout(t *testing.T) {
app := cli.NewApp()
if app.Stdout != os.Stdout {
if app.Writer != os.Stdout {
t.Error("Default output writer not set.")
}
}
@@ -293,7 +293,7 @@ func TestApp_SetStdout(t *testing.T) {
app := cli.NewApp()
app.Name = "test"
app.Stdout = mockWriter
app.Writer = mockWriter
err := app.Run([]string{"help"})