From 57b7d1f1849f9c7236ee095c583ad1f2a907c032 Mon Sep 17 00:00:00 2001 From: dakkar Date: Mon, 29 Apr 2019 15:16:19 +0100 Subject: fix tests for App::Spec 0.005 --- t/lib/Test/Sietima.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/lib/Test/Sietima.pm b/t/lib/Test/Sietima.pm index 79f3b7a..e20aacf 100644 --- a/t/lib/Test/Sietima.pm +++ b/t/lib/Test/Sietima.pm @@ -171,7 +171,7 @@ sub run_cmdline_sub($sietima,$method,$options={},$parameters={}) { cmd => $sietima, op => $method, }); - $r->response(App::Spec::Run::Response->new); + $r->response(App::Spec::Run::Response->new(buffered=>1)); ok( lives { $sietima->$method($r) }, "calling $method should live", -- cgit v1.2.3 From f2778919a07c4d59c6092f31e587d9197e80199b Mon Sep 17 00:00:00 2001 From: dakkar Date: Mon, 29 Apr 2019 15:27:27 +0100 Subject: provide class name to runner --- lib/Sietima/CmdLine.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Sietima/CmdLine.pm b/lib/Sietima/CmdLine.pm index 6c24834..b636533 100644 --- a/lib/Sietima/CmdLine.pm +++ b/lib/Sietima/CmdLine.pm @@ -141,6 +141,8 @@ sub _build_runner($self) { return Sietima::Runner->new({ spec => $self->app_spec, cmd => $self->sietima, + # App::Spec 0.005 really wants a class name + class => ref($self->sietima), }); } -- cgit v1.2.3