Fix typo in test directions
[gitmo/moose-presentations.git] / moose-class / exercises / t / 01-classes.t
index d4db456..b0b5f72 100644 (file)
@@ -7,22 +7,31 @@
 # * first_name - read-write
 # * last_name - read-write
 #
-# This class should also have a method named "printable_name". This
-# method should return the first and last name separated by a string
+# This class should also have a method named "full_name". This
+# method should return the first and last name separated by a space
 # ("Jon Smith").
 #
+# Write a BUILDARGS method for this class which allows the caller to
+# pass a two argument array reference. These should be assigned to the
+# first and last name respectively.
+#
+#   Person->new( [ 'Lisa', 'Smith' ] );
+#
+# Hint: A quick and dirty way to check for this is to use ref() to check if
+# the first value in @_ is an array reference (perldoc -f ref). A nicer way to
+# do this would be use to use Scalar::Util::reftype().
 #
 # Create an Employee class in lib/Employee.pm
 #
 # The Employee class is a subclass of Person
 #
-# An Employee has the following read-write attributes:
+# An Employee has the following attributes:
 #
-# * position - read-write
+# * title - read-write
 # * salary - read-write
 # * ssn - read-only
 #
-# The Employee class should override the "printable_name" method to
+# The Employee class should override the "full_name" method to
 # append the employee's title in parentheses ("Jon Smith
 # (Programmer)"). Use override() and super() for this.
 #
@@ -36,7 +45,4 @@ use lib 't/lib';
 
 use MooseClass::Tests;
 
-use Person;
-use Employee;
-
 MooseClass::Tests::tests01();