X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Frun%2F01core.tl;h=05e4dd3fd63076f318c855f412c13fb35474d3d8;hb=e6a8b3fc4dc400af1a7ed827eaf9752ec99ad289;hp=5287124536c72aef2b8a7d3c219e134508697d91;hpb=3e6fb1021178baa133c85f35c7ed89a9ae91bca9;p=dbsrgits%2FDBIx-Class.git diff --git a/t/run/01core.tl b/t/run/01core.tl index 5287124..05e4dd3 100644 --- a/t/run/01core.tl +++ b/t/run/01core.tl @@ -1,7 +1,7 @@ sub run_tests { my $schema = shift; -plan tests => 57; +plan tests => 58; # figure out if we've got a version of sqlite that is older than 3.2.6, in # which case COUNT(DISTINCT()) doesn't work @@ -237,6 +237,14 @@ ok($schema->storage(), 'Storage available'); cmp_ok(@artsn, '==', 4, "Four artists returned"); } +my $newbook = $schema->resultset( 'Bookmark' )->find(1); + +$@ = ''; +eval { +my $newlink = $newbook->link; +}; +ok(!$@, "stringify to false value doesn't cause error"); + # test cascade_delete through many_to_many relations { my $art_del = $schema->resultset("Artist")->find({ artistid => 1 });