From 0f6d95e7959d2978a869b373649fc5e49f733159 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 5 Mar 2012 22:56:18 -0600 Subject: factor out the callback stuff, make Term::Filter a role --- t/requires-tty.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 't/requires-tty.t') diff --git a/t/requires-tty.t b/t/requires-tty.t index e574f67..81895c2 100644 --- a/t/requires-tty.t +++ b/t/requires-tty.t @@ -4,18 +4,18 @@ use warnings; use Test::More; use Test::Fatal; -use Term::Filter; +use Term::Filter::Callback; my ($input, $output); open my $infh, '<', \$input or die "Couldn't open: $!"; open my $outfh, '<', \$output or die "Couldn't open: $!"; like( - exception { Term::Filter->new(input => $infh) }, + exception { Term::Filter::Callback->new(input => $infh) }, qr/Term::Filter requires input and output filehandles to be attached to a terminal/, "requires a terminal" ); like( - exception { Term::Filter->new(output => $outfh) }, + exception { Term::Filter::Callback->new(output => $outfh) }, qr/Term::Filter requires input and output filehandles to be attached to a terminal/, "requires a terminal" ); -- cgit v1.2.3-54-g00ecf