X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2Fmoose-presentations.git;a=blobdiff_plain;f=moose-class%2Fexercises%2Ft%2F06-advanced-attributes.t;fp=moose-class%2Fexercises%2Ft%2F06-advanced-attributes.t;h=1583334251300f8ab85950b9f12d4a35c26f39b5;hp=e2b13e38a7d2157804504b73fd1cb0876eb0a88f;hb=0f1b9555cfda7afaaf652f1a9eef2d8fa89257a9;hpb=8f577f92f9a3e6fe5b7e8bc18c0eb10781181d24 diff --git a/moose-class/exercises/t/06-advanced-attributes.t b/moose-class/exercises/t/06-advanced-attributes.t index e2b13e3..1583334 100644 --- a/moose-class/exercises/t/06-advanced-attributes.t +++ b/moose-class/exercises/t/06-advanced-attributes.t @@ -17,7 +17,8 @@ # Use a trigger to record the _old value_ of the balance each time it # changes. This means your trigger should not do anything if it is not passed # an old value (this will be the case when the attribute is set for the first -# time). +# time). You can check for the presence of an old value by looking at the +# number of elements passed to the trigger in the @_ array. # # Now you can delete the HasAccount role entirely. Instead, add an "account" # attribute to Person directly.