File: 96file_column.t

package info (click to toggle)
libdbix-class-perl 0.08010-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 2,052 kB
  • ctags: 1,064
  • sloc: perl: 10,536; sql: 225; makefile: 45
file content (15 lines) | stat: -rwxr-xr-x 373 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use strict;
use warnings;  

use Test::More;
use lib qw(t/lib);
use DBICTest;
use IO::File;

my $schema = DBICTest->init_schema();

plan tests => 1;

my $fh = new IO::File('t/96file_column.t','r');
eval { $schema->resultset('FileColumn')->create({file => {handle => $fh, filename =>'96file_column.t'}})};
cmp_ok($@,'eq','','FileColumn checking if file handled properly.');