X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2Fdbixcsl_common_tests.pm;h=059979d45b27474eba1b39807e870099cbe78479;hb=2d945eb32f50afe6b1ab2fb796048db3c691ea79;hp=75158faf9a8596665ee378b9e2d370843c932ddf;hpb=c496748b2c682016ebd8efcd90ce2ed8508508a0;p=dbsrgits%2FDBIx-Class-Schema-Loader.git 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