X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=t%2FApp-Lastmsg.t;h=a9845098fc2e2632775d2d4e4251917ba8a20034;hb=8d77279934f4257a0ea5c7f3ac29f99f00f0d5f1;hp=2439d3f1997e270331a71cce01ab374592ec380a;hpb=e28b3c396eae6604cfe3edad0b3b989928b15d03;p=app-lastmsg.git diff --git a/t/App-Lastmsg.t b/t/App-Lastmsg.t index 2439d3f..a984509 100644 --- a/t/App-Lastmsg.t +++ b/t/App-Lastmsg.t @@ -5,14 +5,9 @@ use warnings; use Test::More tests => 2; BEGIN { use_ok('App::Lastmsg') }; -my $real_strftime = \&POSIX::strftime; - { no warnings 'redefine'; - *App::Lastmsg::strftime = sub { - my ($format, @rest) = @_; - $real_strftime->('%s', @rest) - }; + *App::Lastmsg::format_time = sub { shift }; } chdir 't';