Skip to content

Commit c3372c6

Browse files
committed
Cleanup tests (eval, chop -> chomp).
1 parent 220f3f8 commit c3372c6

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

t/auth.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ GET /test
4646
--- error_code: 200
4747
--- response_headers
4848
Content-Type: text/plain
49-
--- response_body eval
50-
"hi, ngx_test!"
49+
--- response_body chomp
50+
hi, ngx_test!
5151
--- timeout: 10
5252
5353

t/eval.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ GET /eval
4343
--- error_code: 200
4444
--- response_headers
4545
Content-Type: text/plain
46-
--- response_body eval
47-
"it works!"
46+
--- response_body chomp
47+
it works!
4848
--- timeout: 10
4949
--- skip_nginx: 3: < 0.8.25
5050
@@ -69,6 +69,6 @@ GET /eval
6969
--- error_code: 200
7070
--- response_headers
7171
Content-Type: text/plain
72-
--- response_body eval
73-
"test"
72+
--- response_body chomp
73+
test
7474
--- timeout: 10

t/output.t

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ GET /postgres
5454
--- error_code: 200
5555
--- response_headers
5656
Content-Type: text/plain
57-
--- response_body eval
58-
"test"
57+
--- response_body chomp
58+
test
5959
--- timeout: 10
6060
6161
@@ -75,8 +75,8 @@ GET /postgres
7575
--- error_code: 200
7676
--- response_headers
7777
Content-Type: text/html
78-
--- response_body eval
79-
"test"
78+
--- response_body chomp
79+
test
8080
--- timeout: 10
8181
8282
@@ -245,8 +245,8 @@ GET /postgres
245245
--- error_code: 200
246246
--- response_headers
247247
Content-Type: text/plain
248-
--- response_body eval
249-
"test"
248+
--- response_body chomp
249+
test
250250
--- timeout: 10
251251
252252
@@ -287,8 +287,8 @@ GET /postgres
287287
--- error_code: 200
288288
--- response_headers
289289
Content-Type: text/plain
290-
--- response_body eval
291-
"test"
290+
--- response_body chomp
291+
test
292292
--- timeout: 10
293293
294294
@@ -325,8 +325,8 @@ GET /postgres.jpg
325325
--- error_code: 200
326326
--- response_headers
327327
Content-Type: text/plain
328-
--- response_body eval
329-
"test"
328+
--- response_body chomp
329+
test
330330
--- timeout: 10
331331
332332

t/restful_json.t

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ GET /numbers/
9696
--- error_code: 200
9797
--- response_headers
9898
Content-Type: application/json
99-
--- response_body chop
99+
--- response_body chomp
100100
[]
101101
--- timeout: 10
102102
@@ -111,7 +111,7 @@ POST /numbers/
111111
--- error_code: 201
112112
--- response_headers
113113
Content-Type: application/json
114-
--- response_body chop
114+
--- response_body chomp
115115
[{"number":123}]
116116
--- timeout: 10
117117
--- skip_slave: 3: CentOS
@@ -127,7 +127,7 @@ GET /numbers/
127127
--- error_code: 200
128128
--- response_headers
129129
Content-Type: application/json
130-
--- response_body chop
130+
--- response_body chomp
131131
[{"number":123}]
132132
--- timeout: 10
133133
--- skip_slave: 3: CentOS
@@ -143,7 +143,7 @@ GET /numbers/123
143143
--- error_code: 200
144144
--- response_headers
145145
Content-Type: application/json
146-
--- response_body chop
146+
--- response_body chomp
147147
[{"number":123}]
148148
--- timeout: 10
149149
--- skip_slave: 3: CentOS
@@ -161,7 +161,7 @@ PUT /numbers/123
161161
--- error_code: 200
162162
--- response_headers
163163
Content-Type: application/json
164-
--- response_body chop
164+
--- response_body chomp
165165
[{"number":123}]
166166
--- timeout: 10
167167
--- skip_slave: 3: CentOS
@@ -238,6 +238,6 @@ GET /numbers/
238238
--- error_code: 200
239239
--- response_headers
240240
Content-Type: application/json
241-
--- response_body chop
241+
--- response_body chomp
242242
[]
243243
--- timeout: 10

0 commit comments

Comments
 (0)