Skip to content

Commit

Permalink
Spec for when render(:parent) called when no parent template available
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwhite committed Feb 9, 2009
1 parent aab68cd commit 3e4fa8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/controllers/b_controller_spec.rb
Expand Up @@ -63,5 +63,9 @@
get :partial_render_parent
response.body.should == "b:partial_render_parent => b:_partial_render_parent(a:_parent_render_parent)"
end

it "GET :bad_render_parent should rasie TemplateError" do
lambda { get :bad_render_parent }.should raise_error(ActionView::TemplateError)
end
end
end

0 comments on commit 3e4fa8a

Please sign in to comment.