<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>spec/fixtures/views/a/render_non_existent_partial.html.erb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -9,6 +9,8 @@ AController &lt; TestController; inherit_views (an instance)
 - GET :in_abc should render a/in_abc
 - GET :in_a should render a/in_a
 - GET :in_ab should render a/in_ab
+- GET :render_non_existent_partial should raise ActionView::TemplateError
+- GET :render_non_existent_template should raise ActionView::MissingTemplate
 
 BController &lt; TestController; inherit_views 'a' (the class)
 - should be inherit views
@@ -52,6 +54,6 @@ DController &lt; AController; inherit_views 'other' (an instance)
 NormalController
 - GET :partial_from_c should render normal/partial_from_c, then c/_partial_in_bc
 
-Finished in 0.348816 seconds
+Finished in 0.242443 seconds
 
-35 examples, 0 failures
+37 examples, 0 failures</diff>
      <filename>SPECDOC</filename>
    </modified>
    <modified>
      <diff>@@ -44,10 +44,6 @@ module Ardes#:nodoc:
   #   end
   #
   module InheritViews
-    
-    # raised when an inherited file cannot be found, and one is required (e.g. in render_parent)
-    class InheritedFileNotFound &lt; RuntimeError; end
-    
     # extension for ActionController::Base which enables inherit_views, this module is extended into
     # ActionController::Base
     module ActionController
@@ -103,10 +99,12 @@ module Ardes#:nodoc:
           
           def _pick_template(template_path)
             _orig_pick_template(template_path)
-          rescue ::ActionView::MissingTemplate
+          rescue ::ActionView::MissingTemplate =&gt; e
             if controller.respond_to?(:inherit_views?) &amp;&amp; controller.inherit_views?
-              _pick_template_from_inherit_view_paths(template_path, controller.inherit_view_paths)
+              found = _pick_template_from_inherit_view_paths(template_path, controller.inherit_view_paths)
+              return found if found
             end
+            raise e
           end
           
           def _pick_template_from_inherit_view_paths(template_path, inherit_view_paths)
@@ -124,6 +122,7 @@ module Ardes#:nodoc:
                 return inherited_template if inherited_template
               end
             end
+            nil
           end
           memoize :_pick_template_from_inherit_view_paths
         end</diff>
      <filename>lib/ardes/inherit_views.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,6 +6,10 @@ end
 # its subclasses will inherit its views
 class AController &lt; InheritViewsTestController
   inherit_views
+  
+  def render_non_existent_template
+    render :action =&gt; 'non_exitsent'
+  end
 end
 
 # :b controller is a normal controller with inherit_views 'a'
@@ -23,6 +27,6 @@ class DController &lt; AController
   inherit_views 'other'
 end
 
-# used to test that inherit_views doesn't muck anything else up
+# used to test normal rails behaviour
 class NormalController &lt; InheritViewsTestController
 end</diff>
      <filename>spec/app.rb</filename>
    </modified>
    <modified>
      <diff>@@ -33,5 +33,13 @@ describe AController, &quot; &lt; TestController; inherit_views&quot; do
       get :in_ab
       response.body.should == 'a:in_ab'
     end
+    
+    it &quot;GET :render_non_existent_partial should raise ActionView::TemplateError&quot; do
+      lambda { get :render_non_existent_partial }.should raise_error(ActionView::TemplateError)
+    end
+    
+    it &quot;GET :render_non_existent_template should raise ActionView::MissingTemplate&quot; do
+      lambda { get :render_non_existent_template }.should raise_error(ActionView::MissingTemplate)
+    end
   end
 end
\ No newline at end of file</diff>
      <filename>spec/controllers/a_controller_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e2d2e7e84ceb8da6d69bbea453f083c3d1dd4de0</id>
    </parent>
  </parents>
  <author>
    <name>Ian White</name>
    <email>ian.w.white@gmail.com</email>
  </author>
  <url>http://github.com/ianwhite/inherit_views/commit/4f0e15b1099cc4e6b0729c7c5059fafceb58a1c7</url>
  <id>4f0e15b1099cc4e6b0729c7c5059fafceb58a1c7</id>
  <committed-date>2008-09-21T01:06:53-07:00</committed-date>
  <authored-date>2008-09-21T01:06:53-07:00</authored-date>
  <message>Make sure that ActionView::MissingTemplate is still raised when an inherited template can't be found</message>
  <tree>4f7a7aadd3527ca2a7094ea9320dddbf07dd0754</tree>
  <committer>
    <name>Ian White</name>
    <email>ian.w.white@gmail.com</email>
  </committer>
</commit>
