X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F746sybase.t;h=daca42667c3aff59031498af4d126c4e3158ab01;hb=2ff179e22bca6e8b7c3cb131e234ce2ce8996113;hp=441a25816f2465b56cedd3cd820cb580efc5bd90;hpb=6469dabf60e2e7f7ca05122ec8bd4497e07bab2f;p=dbsrgits%2FDBIx-Class.git diff --git a/t/746sybase.t b/t/746sybase.t index 441a258..daca426 100644 --- a/t/746sybase.t +++ b/t/746sybase.t @@ -569,12 +569,10 @@ SQL $row->update({ amount => undef }); } 'updated a money value to NULL'; - my $null_amount = eval { $rs->find($row->id)->amount }; - ok( - (($null_amount == undef) && (not $@)), - 'updated money value to NULL round-trip' - ); - diag $@ if $@; + lives_and { + my $null_amount = $rs->find($row->id)->amount; + is $null_amount, undef; + } 'updated money value to NULL round-trip'; # Test computed columns and timestamps $schema->storage->dbh_do (sub {