about summary refs log tree commit homepage
path: root/t/psgi_text.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-10-15 00:38:06 +0000
committerEric Wong <e@80x24.org>2019-10-15 20:26:41 +0000
commit1317fb7b4ace03f6d9dfb1a42ee5f9371a1bf913 (patch)
treef46b2e82a2edd849b3ded014bb4b209e778e6a2f /t/psgi_text.t
parent53a8e32b97985803e9de12c4312a86a8850208b3 (diff)
downloadpublic-inbox-1317fb7b4ace03f6d9dfb1a42ee5f9371a1bf913.tar.gz
Rewrite a bunch of tests to use ordered input (emulating
"git config -l" output) so we can always walk sections in
the order they were given in the config file.
Diffstat (limited to 't/psgi_text.t')
-rw-r--r--t/psgi_text.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/psgi_text.t b/t/psgi_text.t
index bdc1ebfd..944a6476 100644
--- a/t/psgi_text.t
+++ b/t/psgi_text.t
@@ -21,10 +21,10 @@ use PublicInbox::Config;
 use PublicInbox::WWW;
 use_ok 'PublicInbox::WwwText';
 use Plack::Builder;
-my $config = PublicInbox::Config->new({
-        "$cfgpfx.address" => $addr,
-        "$cfgpfx.mainrepo" => $maindir,
-});
+my $config = PublicInbox::Config->new(\<<EOF);
+$cfgpfx.address=$addr
+$cfgpfx.mainrepo=$maindir
+EOF
 is(0, system(qw(git init -q --bare), $maindir), "git init (main)");
 my $www = PublicInbox::WWW->new($config);