X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Finbox.t;fp=t%2Finbox.t;h=a466dd1364bd29879b2985cd460afdc2dfdd82cd;hb=1988d730c0088e8b1f6193650c7ee929df8a2ed7;hp=c967429023d161c0e46b5253edd4159399a5c0ae;hpb=78fe6a9e601fcf3ec2983c82edaeb825e61275cf;p=public-inbox.git diff --git a/t/inbox.t b/t/inbox.t index c9674290..a466dd13 100644 --- a/t/inbox.t +++ b/t/inbox.t @@ -4,9 +4,9 @@ use strict; use warnings; use Test::More; use_ok 'PublicInbox::Inbox'; -my $x = PublicInbox::Inbox->new({url => '//example.com/test/'}); +my $x = PublicInbox::Inbox->new({url => [ '//example.com/test/' ]}); is($x->base_url, 'https://example.com/test/', 'expanded protocol-relative'); -$x = PublicInbox::Inbox->new({url => 'http://example.com/test'}); +$x = PublicInbox::Inbox->new({url => [ 'http://example.com/test' ]}); is($x->base_url, 'http://example.com/test/', 'added trailing slash'); $x = PublicInbox::Inbox->new({});