aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2008-05-02 10:45:08 +0100
committerPratik Naik <pratiknaik@gmail.com>2008-05-02 10:45:08 +0100
commit87ec72bd8c4b5d178ba7a41e605bc9a8e27f9e67 (patch)
tree786157113ebcfa2d13dce3ca452bcd3bcaf04a27 /actionpack/test/template
parentb88a6dbc39fcaa12dc58d06d4222f2443f02a32a (diff)
downloadrails-87ec72bd8c4b5d178ba7a41e605bc9a8e27f9e67.tar.gz
rails-87ec72bd8c4b5d178ba7a41e605bc9a8e27f9e67.tar.bz2
rails-87ec72bd8c4b5d178ba7a41e605bc9a8e27f9e67.zip
Improve PartialTemplate tests
Diffstat (limited to 'actionpack/test/template')
-rw-r--r--actionpack/test/template/template_object_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/template/template_object_test.rb b/actionpack/test/template/template_object_test.rb
index 7adcde421f..afb5c5cc16 100644
--- a/actionpack/test/template/template_object_test.rb
+++ b/actionpack/test/template/template_object_test.rb
@@ -51,6 +51,11 @@ class TemplateObjectTest < Test::Unit::TestCase
assert template.locals.has_key?(:partial_only)
end
+ def test_partial_with_errors
+ template = ActionView::PartialTemplate.new(@view, 'test/raise', nil)
+ assert_raise(ActionView::TemplateError) { template.render_template }
+ end
+
uses_mocha 'Partial template preparation tests' do
def test_should_prepare_on_initialization
ActionView::PartialTemplate.any_instance.expects(:prepare!)