public
Description: rails plugin that enables inheritance of views along a controller class heirachy
Homepage: http://ianwhite.github.com/inherit_views
Clone URL: git://github.com/ianwhite/inherit_views.git
Added specs for [#1] No failures yet
ianwhite (author)
Sat Sep 20 17:45:03 -0700 2008
commit  9dd29e557965f7d0a4e900e83030c690386c26fe
tree    dbfe4212548f299992ae7294740551722f182bbc
parent  29e9d19dc83ed74450ade124c70c5c1e9723966a
...
27
28
29
 
30
31
32
...
27
28
29
30
31
32
33
0
@@ -27,6 +27,7 @@ class BController < InheritViewsTestController
0
   def bad_render_parent; end
0
   def partial_in_bc; end
0
   def partial_in_b; end
0
+  def collection_in_bc; end
0
 end
0
 
0
 # :c cotroller is a subclass of :b controller, so it inheirt's b's views ('c', 'b', then 'a')
...
57
58
59
 
 
 
 
 
60
61
62
...
57
58
59
60
61
62
63
64
65
66
67
0
@@ -57,5 +57,10 @@ describe BController, " < TestController; inherit_views 'a'" do
0
       get :partial_in_b
0
       response.body.should == "b:partial_in_b => b:_partial_in_b"
0
     end
0
+    
0
+    it "GET :collection_in_bc should render b/collection_in_bc then b/_partial_in_bc" do
0
+      get :collection_in_bc
0
+      response.body.should == 'b:collection_in_bc => b:_partial_in_bc'
0
+    end
0
   end
0
 end
0
\ No newline at end of file
...
58
59
60
 
 
 
 
 
61
62
63
...
58
59
60
61
62
63
64
65
66
67
68
0
@@ -58,5 +58,10 @@ describe CController, " < BController" do
0
       get :partial_in_b
0
       response.body.should == "b:partial_in_b => b:_partial_in_b"
0
     end
0
+    
0
+    it "GET :collection_in_bc should render b/collection_in_bc then c/_partial_in_bc" do
0
+      get :collection_in_bc
0
+      response.body.should == 'b:collection_in_bc => c:_partial_in_bc'
0
+    end
0
   end
0
 end
0
\ No newline at end of file

Comments