From bf5554febae6f299c716b5a9582c6bfd6980b728 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Thu, 12 Nov 2020 23:20:30 +0100 Subject: + added some files that should belonged to the last commit + preparation for supporting more mime types --- lib/JWebmail/Model/Driver/Mock.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/JWebmail/Model/Driver/Mock.pm') diff --git a/lib/JWebmail/Model/Driver/Mock.pm b/lib/JWebmail/Model/Driver/Mock.pm index eb8c0d0..b2da1be 100644 --- a/lib/JWebmail/Model/Driver/Mock.pm +++ b/lib/JWebmail/Model/Driver/Mock.pm @@ -22,7 +22,9 @@ use constant { sub _read_json_file { my ($file_name) = @_; - open(my $body_file, '<', $file_name); + use constant PREFIX => 't/private/'; + + open(my $body_file, '<', PREFIX . $file_name); local $/; my $body = <$body_file>; close $body_file; @@ -99,4 +101,4 @@ __END__ Mock - Simple file based mock for the L module. -=cut \ No newline at end of file +=cut -- cgit v1.2.3