From: Rafael Kitover Date: Fri, 19 Mar 2010 15:52:16 +0000 (-0400) Subject: better SQLite view test X-Git-Tag: 0.06000~45 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bf558f7228ab51044ae0346627e0ffa94dda497e;p=dbsrgits%2FDBIx-Class-Schema-Loader.git better SQLite view test --- diff --git a/t/10sqlite_common.t b/t/10sqlite_common.t index 865835e..11b5635 100644 --- a/t/10sqlite_common.t +++ b/t/10sqlite_common.t @@ -50,7 +50,7 @@ my $tester = dbixcsl_common_tests->new( ], pre_drop_ddl => [ 'DROP VIEW extra_loader_test5' ], drop => [ qw/extra_loader_test1 extra_loader_test2 extra_loader_test3 extra_loader_test4 / ], - count => 8, + count => 9, run => sub { my ($schema, $monikers, $classes) = @_; @@ -77,6 +77,9 @@ my $tester = dbixcsl_common_tests->new( is ($source->relationships, 2, '2 foreign key constraints found'); + # test that columns for views are picked up + is $schema->resultset($monikers->{extra_loader_test5})->result_source->column_info('person_id')->{data_type}, 'INTEGER', + 'columns for views are introspected'; }, }, );