3
use Capture::Tiny qw/capture/;
10
file => "t/bin/main-order.pl",
11
expect => qr/first_test.*?second_test/ms,
14
label => "role vs main",
15
file => "t/bin/role-last.pl",
16
expect => qr/in_main.*?in_role/ms,
19
label => "force role first",
20
file => "t/bin/custom-order.pl",
21
expect => qr/in_role.*?in_main/ms,
26
my ( $output, $error, $rc ) = capture { system( $^X, $c->{file} ) };
27
subtest $c->{label} => sub {
28
ok( !$rc, "zero exit" );
29
like( $output, $c->{expect}, "expected text" );
35
# This file is part of Test-Roo
37
# This software is Copyright (c) 2013 by David Golden.
39
# This is free software, licensed under:
41
# The Apache License, Version 2.0, January 2004
43
# vim: ts=4 sts=4 sw=4 et: