Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Test files fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Herfray committed Oct 1, 2015
1 parent 3859c90 commit facbc51
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestLogger(t *testing.T) {
a.NoError(err)

n.ServeHTTP(httptest.NewRecorder(), req)
r.NotEqual(buff.Len(), 0)
r.NotEqual(0, buff.Len())
a.Contains(buff.String(), "GET")
a.Contains(buff.String(), "/foobar")
}
Expand All @@ -43,7 +43,7 @@ func TestLogger(t *testing.T) {
a.NoError(err)

n.ServeHTTP(httptest.NewRecorder(), req)
r.NotEqual(buff.Len(), 0)
r.NotEqual(0, buff.Len())
a.Contains(buff.String(), method)
a.Contains(buff.String(), "/foobar")
}
Expand Down
2 changes: 1 addition & 1 deletion recovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func TestRecovery(t *testing.T) {
rec.Logger = log.New(buff, "[Zest] ", 0)
rec.ServeHTTP(recorder, (*http.Request)(nil), panicFunc)

r.NotEqual(buff.Len(), 0)
r.NotEqual(0, buff.Len())
a.Contains(recorder.Body.String(), "500")
a.Contains(recorder.Body.String(), "An internal error occured. Please retry later.")
a.Contains(recorder.Body.String(), "undefined error")
Expand Down
4 changes: 2 additions & 2 deletions zest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestCli(t *testing.T) {
r.NotPanics(func() { _ = zest.Cli() })
cli = zest.Cli()

a.Equal(cli.Name, "foobar")
a.Equal("foobar", cli.Name)

zest = Classic() // should also work with the Classic zest

Expand All @@ -37,7 +37,7 @@ func TestCli(t *testing.T) {
r.NotPanics(func() { _ = zest.Cli() })
cli = zest.Cli()

a.Equal(cli.Name, "foobar")
a.Equal("foobar", cli.Name)
}

// TestRun runs tests on the zest Run method.
Expand Down

0 comments on commit facbc51

Please sign in to comment.