From: Dave Rolsky Date: Fri, 9 Jul 2010 14:49:48 +0000 (-0500) Subject: Make tests match the order of the instructions for test 05 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=21c6ab1c539bf2df6b141a396b3d36e3af63d5ea;p=gitmo%2Fmoose-presentations.git Make tests match the order of the instructions for test 05 --- diff --git a/moose-class/exercises/t/lib/MooseClass/Tests.pm b/moose-class/exercises/t/lib/MooseClass/Tests.pm index 2c95212..23cf3ab 100644 --- a/moose-class/exercises/t/lib/MooseClass/Tests.pm +++ b/moose-class/exercises/t/lib/MooseClass/Tests.pm @@ -162,8 +162,6 @@ EOF sub tests05 { has_meta('Person'); - has_meta('Employee'); - no_droppings('Employee'); for my $attr_name (qw( first_name last_name title )) { my $attr = Person->meta->get_attribute($attr_name); @@ -178,6 +176,8 @@ sub tests05 { ); } + has_meta('Employee'); + { my $salary_level_attr = Employee->meta->get_attribute('salary_level'); ok( @@ -254,6 +254,8 @@ sub tests05 { ); } } + + no_droppings('Employee'); } sub tests06 {