Mercurial > hg > nginx-tests
comparison js_internal_redirect.t @ 1347:106d9f806288
Tests: js_internal_redirect.t cleanup.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 14 Jun 2018 10:51:05 +0300 |
parents | 4d5d1e59f45e |
children | 533d31d5057e |
comparison
equal
deleted
inserted
replaced
1346:4d5d1e59f45e | 1347:106d9f806288 |
---|---|
10 use warnings; | 10 use warnings; |
11 use strict; | 11 use strict; |
12 | 12 |
13 use Test::More; | 13 use Test::More; |
14 | 14 |
15 use Config; | |
16 | |
17 BEGIN { use FindBin; chdir($FindBin::Bin); } | 15 BEGIN { use FindBin; chdir($FindBin::Bin); } |
18 | 16 |
19 use lib 'lib'; | 17 use lib 'lib'; |
20 use Test::Nginx; | 18 use Test::Nginx; |
21 | 19 |
22 ############################################################################### | 20 ############################################################################### |
23 | 21 |
24 select STDERR; $| = 1; | 22 select STDERR; $| = 1; |
25 select STDOUT; $| = 1; | 23 select STDOUT; $| = 1; |
26 | 24 |
27 my $t = Test::Nginx->new()->has(qw/http/) | 25 my $t = Test::Nginx->new()->has(qw/http rewrite/) |
28 ->write_file_expand('nginx.conf', <<'EOF'); | 26 ->write_file_expand('nginx.conf', <<'EOF'); |
29 | 27 |
30 %%TEST_GLOBALS%% | 28 %%TEST_GLOBALS%% |
31 | 29 |
32 daemon off; | 30 daemon off; |