]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/psgi_mount.t
learn: hoist out remove_or_add subroutine
[public-inbox.git] / t / psgi_mount.t
index 8da2bc8937bc140a72de2c1e92a97b04f5fb6bc6..aa7c863f5274421e528c4a4e79d28a48a27b41db 100644 (file)
@@ -21,10 +21,10 @@ use PublicInbox::Config;
 use PublicInbox::WWW;
 use Plack::Builder;
 use Plack::App::URLMap;
-my $config = PublicInbox::Config->new({
-       "$cfgpfx.address" => $addr,
-       "$cfgpfx.mainrepo" => $maindir,
-});
+my $config = PublicInbox::Config->new(\<<EOF);
+$cfgpfx.address=$addr
+$cfgpfx.inboxdir=$maindir
+EOF
 is(0, system(qw(git init -q --bare), $maindir), "git init (main)");
 my $git = PublicInbox::Git->new($maindir);
 my $im = PublicInbox::Import->new($git, 'test', $addr);