fixing tests for new output method
This commit is contained in:
parent
74381281fa
commit
d2116bf797
3 changed files with 31 additions and 16 deletions
|
|
@ -452,15 +452,12 @@ sub sendImmediate {
|
|||
|
||||
SKIP: {
|
||||
skip "You have an old perl", 1 if $crappyPerl;
|
||||
close STDOUT;
|
||||
my $buffer;
|
||||
open STDOUT, '>', \$buffer or die "Unable to point handle at variable: $!\n";
|
||||
my $request = $style->session->request;
|
||||
$request->clear_output;
|
||||
$style->sent(1);
|
||||
$style->$action($output);
|
||||
like($buffer, qr/$output/, $comment);
|
||||
like($request->get_output, qr/$output/, $comment);
|
||||
$style->sent(0);
|
||||
close STDOUT;
|
||||
open STDOUT, '>-' or die "Unable to restore STDOUT: $!\n";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue