From 0c8f677e55941c5c65b263294692899c549ce533 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 20 Jun 2016 00:57:17 +0000 Subject: inbox: move field population logic to initializer Inboxes are normally created by Config, but having the population logic in Inbox should make it easier to mock for testing. --- t/feed.t | 1 - t/html_index.t | 1 - 2 files changed, 2 deletions(-) (limited to 't') diff --git a/t/feed.t b/t/feed.t index 5dd869aa..19a9ba09 100644 --- a/t/feed.t +++ b/t/feed.t @@ -43,7 +43,6 @@ my $tmpdir = tempdir('pi-feed-XXXXXX', TMPDIR => 1, CLEANUP => 1); my $git_dir = "$tmpdir/gittest"; my $ibx = PublicInbox::Inbox->new({ address => 'test@example', - -primary_address => 'test@example', name => 'testbox', mainrepo => $git_dir, url => 'http://example.com/test', diff --git a/t/html_index.t b/t/html_index.t index 32d7b8de..100d21a8 100644 --- a/t/html_index.t +++ b/t/html_index.t @@ -13,7 +13,6 @@ my $tmpdir = tempdir('pi-http-XXXXXX', TMPDIR => 1, CLEANUP => 1); my $git_dir = "$tmpdir/gittest"; my $ibx = PublicInbox::Inbox->new({ address => 'test@example', - -primary_address => 'test@example', name => 'tester', mainrepo => $git_dir, url => 'http://example.com/test', -- cgit v1.2.3-24-ge0c7