X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F13schema.t;h=bbb002e9f191c4ed2adb04a7c237c847b1166847;hb=57fd48f1198ca38902a801a323f62522f9b5d6c5;hp=e9050e5b79c7ba0e19cb9cb33b7feb783ba19240;hpb=c1e3c768182d75d6b1f24aeba26964602994a01c;p=dbsrgits%2FSQL-Translator.git diff --git a/t/13schema.t b/t/13schema.t index e9050e5..bbb002e 100644 --- a/t/13schema.t +++ b/t/13schema.t @@ -4,7 +4,7 @@ $| = 1; use strict; -use Test::More tests => 197; +use Test::More tests => 199; use SQL::Translator::Schema::Constants; require_ok( 'SQL::Translator::Schema' ); @@ -106,6 +106,8 @@ require_ok( 'SQL::Translator::Schema' ); is( $f1->is_nullable, 1, 'Field can be NULL' ); is( $f1->default_value, undef, 'Field default is undefined' ); is( $f1->comments, '', 'No comments' ); + is( $f1->table, 'person', 'Field table is person' ); + is( $f1->schema->database, 'PostgreSQL', 'Field schema shortcut works' ); my $f2 = SQL::Translator::Schema::Field->new ( name => 'f2',