X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2Fdbixcsl_common_tests.pm;h=94bf90a216bde23162edb8001c28afaa76ef34c5;hb=c0767caf51045926284f203a7d59890db994aa76;hp=136af6bbb21a7e48f453a296ce550077447ec180;hpb=740241f7a031dea58f6aeb8cf9a2cba1cfe5c92e;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/t/lib/dbixcsl_common_tests.pm b/t/lib/dbixcsl_common_tests.pm index 136af6b..94bf90a 100644 --- a/t/lib/dbixcsl_common_tests.pm +++ b/t/lib/dbixcsl_common_tests.pm @@ -102,7 +102,7 @@ sub run_tests { $num_rescans++ if $self->{vendor} eq 'Firebird'; plan tests => @connect_info * - (192 + $num_rescans * $col_accessor_map_tests + $extra_count + ($self->{data_type_tests}{test_count} || 0)); + (194 + $num_rescans * $col_accessor_map_tests + $extra_count + ($self->{data_type_tests}{test_count} || 0)); foreach my $info_idx (0..$#connect_info) { my $info = $connect_info[$info_idx]; @@ -1132,10 +1132,16 @@ qq| INSERT INTO ${oqt}LoaderTest41${cqt} VALUES (1, 1) |, $self->rescan_without_warnings($conn); if (not $self->{skip_rels}) { - is try { $conn->resultset('LoaderTest41')->find(1)->loader_test40->foo3_bar }, 'foo', - 'rel and accessor for mixed-case column name in mixed case table'; + ok my $row = try { $conn->resultset('LoaderTest41')->find(1) }, + 'row in mixed-case table'; + ok my $related_row = try { $row->loader_test40 }, + 'rel in mixed-case table'; + is try { $related_row->foo3_bar }, 'foo', + 'accessor for mixed-case column name in mixed case table'; } else { + SKIP: { skip 'not testing mixed-case rels with skip_rels', 2 } + is try { $conn->resultset('LoaderTest40')->find(1)->foo3_bar }, 'foo', 'accessor for mixed-case column name in mixed case table'; }