+use Plack::Util;
+use_ok 'PublicInbox::View';
+
+# FIXME: make this test less fragile
+my $ctx = {
+ env => { HTTP_HOST => 'example.com', 'psgi.url_scheme' => 'http' },
+ -inbox => Plack::Util::inline_object(
+ name => 'test',
+ search => sub { undef },
+ base_url => sub { 'http://example.com/' },
+ cloneurl => sub {[]},
+ nntp_url => sub {[]},
+ max_git_part => sub { undef },
+ description => sub { '' }),
+};
+$ctx->{-inbox}->{-primary_address} = 'test@example.com';