From: Alexander Hartmaier Date: Sat, 23 Oct 2010 14:20:06 +0000 (+0200) Subject: small test improvement X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fp5-DBIx-Class-ResultSet-RecursiveUpdate;a=commitdiff_plain;h=c342f7182586afb9b6fdf1842c34c72b5a681cd1;ds=sidebyside small test improvement --- diff --git a/t/lib/RunTests.pm b/t/lib/RunTests.pm index 5fe46f9..d2d83bb 100644 --- a/t/lib/RunTests.pm +++ b/t/lib/RunTests.pm @@ -172,7 +172,7 @@ TODO: { is( $schema->resultset('User')->count, $expected_user_count, "No new user created" ); is( $dvd_updated->name, undef, 'Dvd name deleted' ); - is( $dvd_updated->owner->id, $another_owner->id, 'Owner updated' ); + is( $dvd_updated->get_column('owner'), $another_owner->id, 'Owner updated' ); is( $dvd_updated->current_borrower->name, 'new name a', 'Related record modified' ); is( $dvd_updated->tags->count, 0, 'Tags deleted' );