Make tests match the order of the instructions for test 03
[gitmo/moose-presentations.git] / moose-class / exercises / answers / 03-basic-attributes / Person.pm
index 3a42949..c94f30c 100644 (file)
@@ -10,9 +10,15 @@ has title => (
     clearer   => 'clear_title',
 );
 
-has first_name => ( is => 'rw' );
+has first_name => (
+    is       => 'rw',
+    required => 1,
+);
 
-has last_name  => ( is => 'rw' );
+has last_name => (
+    is       => 'rw',
+    required => 1,
+);
 
 sub BUILDARGS {
     my $class = shift;