From c3372c66e713cc3e1b4b6f7ff32c0ae72c209a40 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 23 Dec 2010 02:50:42 +0000 Subject: [PATCH] Cleanup tests (eval, chop -> chomp). --- t/auth.t | 4 ++-- t/eval.t | 8 ++++---- t/output.t | 20 ++++++++++---------- t/restful_json.t | 12 ++++++------ 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/t/auth.t b/t/auth.t index d4e21900..8df61e0f 100644 --- a/t/auth.t +++ b/t/auth.t @@ -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 diff --git a/t/eval.t b/t/eval.t index ea73129d..00a69096 100644 --- a/t/eval.t +++ b/t/eval.t @@ -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 @@ -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 diff --git a/t/output.t b/t/output.t index 8ff1c227..94738403 100644 --- a/t/output.t +++ b/t/output.t @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/t/restful_json.t b/t/restful_json.t index 7437eca8..c850e2f9 100644 --- a/t/restful_json.t +++ b/t/restful_json.t @@ -96,7 +96,7 @@ GET /numbers/ --- error_code: 200 --- response_headers Content-Type: application/json ---- response_body chop +--- response_body chomp [] --- timeout: 10 @@ -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 @@ -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 @@ -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 @@ -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 @@ -238,6 +238,6 @@ GET /numbers/ --- error_code: 200 --- response_headers Content-Type: application/json ---- response_body chop +--- response_body chomp [] --- timeout: 10