From: André Walker Date: Wed, 3 Aug 2011 03:59:15 +0000 (-0300) Subject: explaining the existance of a class, for mentors to review X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=95dda84fc48a0c43ba79ec3421a144f7214d4f94;p=catagits%2FCatalyst-Runtime.git explaining the existance of a class, for mentors to review --- diff --git a/t/lib/TestCustomContainer.pm b/t/lib/TestCustomContainer.pm index 310cc19..1ec4d96 100644 --- a/t/lib/TestCustomContainer.pm +++ b/t/lib/TestCustomContainer.pm @@ -20,6 +20,16 @@ has sugar => ( isa => 'Int', ); +# Reason for this class: +# I wanted have a set of tests that would test both the sugar version of the +# container, as the sugar-less. I figured I shouldn't just copy and paste +# the tests. So after struggling for hours to find a way to test twice +# against the same TestApp using only one file, I decided to break it +# into a separate class (this one), and call it at +# - live_container_custom_container_sugar.t and +# - live_container_custom_container_nosugar.t +# setting only the sugar attribute. + sub BUILD { my $self = shift;