X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestCustomContainer.pm;h=1ec4d96e60fd64c8a7ddd9999519efaefcebfcd9;hb=95dda84fc48a0c43ba79ec3421a144f7214d4f94;hp=310cc193113d25bf35b0d86cd02c04e977375d75;hpb=850a9bbec594167f8b2f789bd108751215a0430f;p=catagits%2FCatalyst-Runtime.git 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;