Add note about updating t/view_HTML.t after adding a call to MyApp->path_to() in...
[catagits/Catalyst-Manual.git] / lib / Catalyst / Manual / Tutorial / 03_MoreCatalystBasics.pod
index e4996c4..89e5e2e 100644 (file)
@@ -481,6 +481,21 @@ C<root/src/_controller_name_/_action_name_.tt2>.  Another popular option is to
 use C<root/> as the base (with a full filename pattern of 
 C<root/_controller_name_/_action_name_.tt2>).
 
+B<NOTE:> Since we've added a call to C<< MyApp->path_to() >> inside of
+C<lib/MyApp/View/HTML.pm>, we need to update C<t/view_HTML.t> to include
+C<MyApp> or the test will fail. Edit C<t/view_HTML.t> and add the C<use>
+statement after the others, so this:
+
+    use Test::More;
+    
+    BEGIN { use_ok 'MyApp::View::HTML' }
+
+looks like this:
+
+    use Test::More;
+    use MyApp;
+
+    BEGIN { use_ok 'MyApp::View::HTML' }
 
 =head2 Create a TT Template Page
 
@@ -1021,7 +1036,7 @@ edit many individual files.
 In order to create a wrapper, you must first edit your TT view and
 tell it where to find your wrapper file. 
 
-Edit you TT view in C<lib/MyApp/View/HTML.pm> and change it to match the 
+Edit your TT view in C<lib/MyApp/View/HTML.pm> and change it to match the 
 following:
 
     __PACKAGE__->config(