X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fstorage%2Fdbh_do.t;h=82e33d81920e992b43ffeeaffd9ff6e00b9c79d0;hb=7e1ca6dd06c5e53e7afa3433da0f59e41ce791e8;hp=a5a58d6200aa4d518455f16a074254f10d24545e;hpb=492bb85a977b5b708fd87af25ebd41a459a9087b;p=dbsrgits%2FDBIx-Class.git diff --git a/t/storage/dbh_do.t b/t/storage/dbh_do.t index a5a58d6..82e33d8 100644 --- a/t/storage/dbh_do.t +++ b/t/storage/dbh_do.t @@ -1,5 +1,3 @@ -#!/usr/bin/perl - use strict; use warnings; @@ -33,4 +31,10 @@ is_deeply ( [ $storage, $storage->dbh, "baz", "buz" ], ); +# test aliasing +my $res = 'original'; +$storage->dbh_do (sub { $_[2] = 'changed' }, $res); + +is ($res, 'changed', "Arguments properly aliased for dbh_do"); + done_testing;