From: Rafael Kitover Date: Mon, 8 Mar 2010 07:46:01 +0000 (-0500) Subject: fix new rel tests for older DBIC X-Git-Tag: 0.06000~57 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class-Schema-Loader.git;a=commitdiff_plain;h=2d945eb32f50afe6b1ab2fb796048db3c691ea79 fix new rel tests for older DBIC --- diff --git a/t/backcompat/0.04006/lib/dbixcsl_common_tests.pm b/t/backcompat/0.04006/lib/dbixcsl_common_tests.pm index 827d5a8..7ab3f98 100644 --- a/t/backcompat/0.04006/lib/dbixcsl_common_tests.pm +++ b/t/backcompat/0.04006/lib/dbixcsl_common_tests.pm @@ -348,10 +348,10 @@ sub run_tests { # test that _id is not stripped and prepositions in rel names are # ignored - ok ($class4->has_relationship('loader_test5_to_ids'), + ok ($rsobj4->result_source->has_relationship('loader_test5_to_ids'), "rel with preposition 'to' and _id pluralized backward-compatibly"); - ok ($class4->has_relationship('loader_test5_from_ids'), + ok ($rsobj4->result_source->has_relationship('loader_test5_from_ids'), "rel with preposition 'from' and _id pluralized backward-compatibly"); # find on multi-col pk diff --git a/t/lib/dbixcsl_common_tests.pm b/t/lib/dbixcsl_common_tests.pm index 75158fa..059979d 100644 --- a/t/lib/dbixcsl_common_tests.pm +++ b/t/lib/dbixcsl_common_tests.pm @@ -511,10 +511,10 @@ sub test_schema { isa_ok( $rs_rel4->first, $class4); # check rel naming with prepositions - ok ($class4->has_relationship('loader_test5s_to'), + ok ($rsobj4->result_source->has_relationship('loader_test5s_to'), "rel with preposition 'to' pluralized correctly"); - ok ($class4->has_relationship('loader_test5s_from'), + ok ($rsobj4->result_source->has_relationship('loader_test5s_from'), "rel with preposition 'from' pluralized correctly"); # find on multi-col pk