From: Rafael Kitover Date: Sun, 24 Jan 2010 12:10:39 +0000 (+0000) Subject: add external content and skip_load_external tests to 23dumpmore.t X-Git-Tag: 0.05000~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6dde461399e3aaf3a24f1b21510fb9f2fd1ef5b1;p=dbsrgits%2FDBIx-Class-Schema-Loader.git add external content and skip_load_external tests to 23dumpmore.t --- diff --git a/t/23dumpmore.t b/t/23dumpmore.t index 1128203..57bd206 100644 --- a/t/23dumpmore.t +++ b/t/23dumpmore.t @@ -125,6 +125,40 @@ sub append_to_class { rmtree($DUMP_PATH, 1, 1); +# test loading external content +do_dump_test( + classname => 'DBICTest::Schema::13', + options => { }, + error => '', + warnings => [ + qr/Dumping manual schema for DBICTest::Schema::13 to directory /, + qr/Schema dump completed/, + ], + regexes => { + Foo => [ +qr/package DBICTest::Schema::13::Foo;\nour \$skip_me = "bad mojo";\n1;/ + ], + }, +); + +# test skipping external content +do_dump_test( + classname => 'DBICTest::Schema::14', + options => { skip_load_external => 1 }, + error => '', + warnings => [ + qr/Dumping manual schema for DBICTest::Schema::14 to directory /, + qr/Schema dump completed/, + ], + neg_regexes => { + Foo => [ +qr/package DBICTest::Schema::14::Foo;\nour \$skip_me = "bad mojo";\n1;/ + ], + }, +); + +rmtree($DUMP_PATH, 1, 1); + # test out the POD do_dump_test(