fixed debugfh
[dbsrgits/DBIx-Class.git] / t / 91debug.t
diff --git a/t/91debug.t b/t/91debug.t
new file mode 100644 (file)
index 0000000..4f9d1d9
--- /dev/null
@@ -0,0 +1,21 @@
+use strict;
+use warnings; 
+
+use Test::More;
+use lib qw(t/lib);
+use DBICTest;
+
+my $schema = DBICTest->init_schema();
+
+plan tests => 2;
+
+ok ( $schema->storage->debug(1), 'debug' );
+ok ( defined(
+       $schema->storage->debugfh(
+         IO::File->new('t/var/sql.log', 'w')
+       )
+     ),
+     'debugfh'
+   );
+
+1;