diff options
author | dakkar <dakkar@thenautilus.net> | 2019-04-29 15:28:05 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2019-04-29 15:29:52 +0100 |
commit | 2d7224bdd7bf7113fd4be5852375f687fab9ca68 (patch) | |
tree | 948aed9a6d0bc4c4989a8c4b49beaec5c768e608 | |
parent | v1.0.3 (diff) | |
parent | provide class name to runner (diff) | |
download | Sietima-2d7224bdd7bf7113fd4be5852375f687fab9ca68.tar.gz Sietima-2d7224bdd7bf7113fd4be5852375f687fab9ca68.tar.bz2 Sietima-2d7224bdd7bf7113fd4be5852375f687fab9ca68.zip |
Merge branch 'fix-for-newer-app-spec'
-rw-r--r-- | lib/Sietima/CmdLine.pm | 2 | ||||
-rw-r--r-- | t/lib/Test/Sietima.pm | 2 |
2 files changed, 3 insertions, 1 deletions
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), }); } 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", |