skip tests unless DBD::SQLite installed
[blog.pm-common-perl-mods.git] / Rose-DBx-Object-Metadata-Column-Photo / t / filepath.t
blob17b6aae4d7d9b4b29c26e208e8f67bec0f347dd9
1 #!/usr/bin/perl
3 use strict;
4 use warnings;
6 use Test::More 'tests' => 2;
8 use lib 't/lib';
10 use NewDB;
11 use User;
13 my $db = NewDB->new();
15 $db->init();
17 my $u = User->new( name => 'qqaa', photo => 't/data/linux.png' );
18 $u->save();
20 ok( $u );
22 ok( -f 't/uploads/user/' . $u->photo );
24 $u->delete();