my mistake, change 96file_column.pm to 96file_column.t
[dbsrgits/DBIx-Class.git] / t / 96file_column.t
CommitLineData
4740bdb7 1use strict;
2use warnings;
3
4use Test::More;
5use lib qw(t/lib);
6use DBICTest;
7use IO::File;
8
9my $schema = DBICTest->init_schema();
10
11plan tests => 2;
12
13
14eval { $schema->resultset('FileColumn')->create({file=>'wrong set'}) };
15ok($@, 'FileColumn checking for checks against bad sets');
16my $fh = new IO::File('t/96file_column.pm','r');
17eval { $schema->resultset('FileColumn')->create({file => {handle => $fh, filename =>'96file_column.pm'}})};
18ok(!$@,'FileColumn checking if file handled properly.');