summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-09-23 01:10:36 -0500
committerJesse Luehrs <doy@tozt.net>2009-09-23 01:10:36 -0500
commit19435a164724e1cc3dab3ff8c3cd42392eb67c20 (patch)
tree9c14e60b5946a5e0f624abf286cae26bc05139a2 /t
parent92f9ce683247b58ef533d3dd1f83bbd5536dd314 (diff)
downloadmoosex-methodtraits-19435a164724e1cc3dab3ff8c3cd42392eb67c20.tar.gz
moosex-methodtraits-19435a164724e1cc3dab3ff8c3cd42392eb67c20.zip
allow passing attribute initialization args to the with_traits function
Diffstat (limited to 't')
-rw-r--r--t/004-generate-method.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/004-generate-method.t b/t/004-generate-method.t
index 999fd1e..38165a2 100644
--- a/t/004-generate-method.t
+++ b/t/004-generate-method.t
@@ -15,7 +15,7 @@ BEGIN {
munge => sub {
my $name = shift;
return sub { shift->$name(@_) },
- [ aliased_from => $name, @_ ];
+ { aliased_from => $name, @_ };
},
}
}