Skip to content

Commit

Permalink
Cleanup tests (eval, chop -> chomp).
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrSikora committed Dec 23, 2010
1 parent 220f3f8 commit c3372c6
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions t/auth.t
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ GET /test
--- error_code: 200
--- response_headers
Content-Type: text/plain
--- response_body eval
"hi, ngx_test!"
--- response_body chomp
hi, ngx_test!
--- timeout: 10
Expand Down
8 changes: 4 additions & 4 deletions t/eval.t
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ GET /eval
--- error_code: 200
--- response_headers
Content-Type: text/plain
--- response_body eval
"it works!"
--- response_body chomp
it works!
--- timeout: 10
--- skip_nginx: 3: < 0.8.25
Expand All @@ -69,6 +69,6 @@ GET /eval
--- error_code: 200
--- response_headers
Content-Type: text/plain
--- response_body eval
"test"
--- response_body chomp
test
--- timeout: 10
20 changes: 10 additions & 10 deletions t/output.t
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ GET /postgres
--- error_code: 200
--- response_headers
Content-Type: text/plain
--- response_body eval
"test"
--- response_body chomp
test
--- timeout: 10
Expand All @@ -75,8 +75,8 @@ GET /postgres
--- error_code: 200
--- response_headers
Content-Type: text/html
--- response_body eval
"test"
--- response_body chomp
test
--- timeout: 10
Expand Down Expand Up @@ -245,8 +245,8 @@ GET /postgres
--- error_code: 200
--- response_headers
Content-Type: text/plain
--- response_body eval
"test"
--- response_body chomp
test
--- timeout: 10
Expand Down Expand Up @@ -287,8 +287,8 @@ GET /postgres
--- error_code: 200
--- response_headers
Content-Type: text/plain
--- response_body eval
"test"
--- response_body chomp
test
--- timeout: 10
Expand Down Expand Up @@ -325,8 +325,8 @@ GET /postgres.jpg
--- error_code: 200
--- response_headers
Content-Type: text/plain
--- response_body eval
"test"
--- response_body chomp
test
--- timeout: 10
Expand Down
12 changes: 6 additions & 6 deletions t/restful_json.t
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ GET /numbers/
--- error_code: 200
--- response_headers
Content-Type: application/json
--- response_body chop
--- response_body chomp
[]
--- timeout: 10
Expand All @@ -111,7 +111,7 @@ POST /numbers/
--- error_code: 201
--- response_headers
Content-Type: application/json
--- response_body chop
--- response_body chomp
[{"number":123}]
--- timeout: 10
--- skip_slave: 3: CentOS
Expand All @@ -127,7 +127,7 @@ GET /numbers/
--- error_code: 200
--- response_headers
Content-Type: application/json
--- response_body chop
--- response_body chomp
[{"number":123}]
--- timeout: 10
--- skip_slave: 3: CentOS
Expand All @@ -143,7 +143,7 @@ GET /numbers/123
--- error_code: 200
--- response_headers
Content-Type: application/json
--- response_body chop
--- response_body chomp
[{"number":123}]
--- timeout: 10
--- skip_slave: 3: CentOS
Expand All @@ -161,7 +161,7 @@ PUT /numbers/123
--- error_code: 200
--- response_headers
Content-Type: application/json
--- response_body chop
--- response_body chomp
[{"number":123}]
--- timeout: 10
--- skip_slave: 3: CentOS
Expand Down Expand Up @@ -238,6 +238,6 @@ GET /numbers/
--- error_code: 200
--- response_headers
Content-Type: application/json
--- response_body chop
--- response_body chomp
[]
--- timeout: 10

0 comments on commit c3372c6

Please sign in to comment.