From: Dave Rolsky Date: Fri, 9 Jul 2010 14:48:14 +0000 (-0500) Subject: Make tests match the order of the instructions for test 04 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=efc3139a76f4c668ef60d2f0ce4138ad1d3b492a;p=gitmo%2Fmoose-presentations.git Make tests match the order of the instructions for test 04 --- diff --git a/moose-class/exercises/t/lib/MooseClass/Tests.pm b/moose-class/exercises/t/lib/MooseClass/Tests.pm index 524445b..2c95212 100644 --- a/moose-class/exercises/t/lib/MooseClass/Tests.pm +++ b/moose-class/exercises/t/lib/MooseClass/Tests.pm @@ -122,15 +122,12 @@ sub tests03 { sub tests04 { has_meta('Document'); - has_meta('Report'); - has_meta('TPSReport'); - - no_droppings('Document'); - no_droppings('Report'); - no_droppings('TPSReport'); - has_ro_attr( 'Document', $_ ) for qw( title author ); + + has_meta('Report'); has_ro_attr( 'Report', 'summary' ); + + has_meta('TPSReport'); has_ro_attr( 'TPSReport', $_ ) for qw( t p s ); has_method( 'Document', 'output' ); @@ -157,6 +154,10 @@ p: Swingline s: flair! Written by Peter Gibbons (for Bill Lumberg) EOF + + no_droppings('Document'); + no_droppings('Report'); + no_droppings('TPSReport'); } sub tests05 {