From: Ash Berlin Date: Mon, 27 Nov 2006 21:52:10 +0000 (+0000) Subject: Fixed ningu's typo from rev 2929, and added test to catch error better X-Git-Tag: v0.08010~150^2~119 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=256e87b079ce72484d73b4f6335d5ea8e4adb27a;p=dbsrgits%2FDBIx-Class.git Fixed ningu's typo from rev 2929, and added test to catch error better --- diff --git a/t/86sqlt.t b/t/86sqlt.t index 92d90f2..095a878 100644 --- a/t/86sqlt.t +++ b/t/86sqlt.t @@ -10,7 +10,7 @@ plan skip_all => 'SQL::Translator required' if $@; my $schema = DBICTest->init_schema; -plan tests => 53; +plan tests => 54; my $translator = SQL::Translator->new( parser_args => { @@ -24,6 +24,10 @@ $translator->producer('SQLite'); my $output = $translator->translate(); + +ok($output, "SQLT produced someoutput") + or diag($translator->error); + # Note that the constraints listed here are the only ones that are tested -- if # more exist in the Schema than are listed here and all listed constraints are # correct, the test will still pass. If you add a class with UNIQUE or FOREIGN diff --git a/t/lib/DBICTest/Schema/FourKeys.pm b/t/lib/DBICTest/Schema/FourKeys.pm index 6038c94..a1e23db 100644 --- a/t/lib/DBICTest/Schema/FourKeys.pm +++ b/t/lib/DBICTest/Schema/FourKeys.pm @@ -14,7 +14,7 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key(qw/foo bar hello goodbye/); __PACKAGE__->has_many( - 'fourkeys_to_twokeys', '__PACKAGE___to_TwoKeys', { + 'fourkeys_to_twokeys', 'DBICTest::Schema::FourKeys_to_TwoKeys', { 'foreign.f_foo' => 'self.foo', 'foreign.f_bar' => 'self.bar', 'foreign.f_hello' => 'self.hello',