Skip to content

Commit

Permalink
Merge branch 'rails-2.0-2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwhite committed Sep 21, 2008
2 parents fe9e1a2 + 9dd29e5 commit feba679
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/app.rb
Expand Up @@ -27,6 +27,7 @@ def render_parent; end
def bad_render_parent; end
def partial_in_bc; end
def partial_in_b; end
def collection_in_bc; end
end

# :c cotroller is a subclass of :b controller, so it inheirt's b's views ('c', 'b', then 'a')
Expand Down
5 changes: 5 additions & 0 deletions spec/controllers/b_controller_spec.rb
Expand Up @@ -57,5 +57,10 @@
get :partial_in_b
response.body.should == "b:partial_in_b => b:_partial_in_b"
end

it "GET :collection_in_bc should render b/collection_in_bc then b/_partial_in_bc" do
get :collection_in_bc
response.body.should == 'b:collection_in_bc => b:_partial_in_bc'
end
end
end
5 changes: 5 additions & 0 deletions spec/controllers/c_controller_spec.rb
Expand Up @@ -58,5 +58,10 @@
get :partial_in_b
response.body.should == "b:partial_in_b => b:_partial_in_b"
end

it "GET :collection_in_bc should render b/collection_in_bc then c/_partial_in_bc" do
get :collection_in_bc
response.body.should == 'b:collection_in_bc => c:_partial_in_bc'
end
end
end
1 change: 1 addition & 0 deletions spec/fixtures/views/b/collection_in_bc.html.erb
@@ -0,0 +1 @@
b:collection_in_bc => <%= render :partial => 'partial_in_bc', :collection => [1] %>

0 comments on commit feba679

Please sign in to comment.