small test improvement
authorAlexander Hartmaier <abraxxa@cpan.org>
Sat, 23 Oct 2010 14:20:06 +0000 (16:20 +0200)
committerAlexander Hartmaier <abraxxa@cpan.org>
Sat, 23 Oct 2010 14:20:06 +0000 (16:20 +0200)
t/lib/RunTests.pm

index 5fe46f91b14a8b553d0f4851176639bf480d9736..d2d83bbd0af1be8b09c6dec55f4b13db2dc3e26b 100644 (file)
@@ -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' );
This page took 0.02081 seconds and 4 git commands to generate.