X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Frelationship%2Fcore.t;fp=t%2Frelationship%2Fcore.t;h=c611142ec2fd9d8e0890a7a4f94144f0559d3c8a;hb=5ae153d7a25b664e5dc33824a7efd690ac9786b5;hp=46e655c3ee89cc9871aba4d2e502532bd213c1ce;hpb=85aee309cf0565da729d43bb0f5677da548ffe34;p=dbsrgits%2FDBIx-Class.git diff --git a/t/relationship/core.t b/t/relationship/core.t index 46e655c..c611142 100644 --- a/t/relationship/core.t +++ b/t/relationship/core.t @@ -227,7 +227,7 @@ is( $twokey->fourkeys_to_twokeys->count, 0, my $undef_artist_cd = $schema->resultset("CD")->new_result({ 'title' => 'badgers', 'year' => 2007 }); -is($undef_artist_cd->has_column_loaded('artist'), '', 'FK not loaded'); +ok(! $undef_artist_cd->has_column_loaded('artist'), 'FK not loaded'); is($undef_artist_cd->search_related('artist')->count, 0, '0=1 search when FK does not exist and object not yet in db'); lives_ok { $undef_artist_cd->related_resultset('artist')->new({name => 'foo'});