aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <shibata.hiroshi@gmail.com>2012-12-20 16:49:00 +0900
committerSHIBATA Hiroshi <shibata.hiroshi@gmail.com>2013-01-05 09:38:23 +0900
commit8a1ba017c657353daebf13a1f30d1a028967dc36 (patch)
tree465ea063f6954b3cec6ec6d58bdffcbc4d880f3c /actionpack/test
parent6b9cb71b2fa0893139a87bee2bbd5293cd8c0487 (diff)
downloadrails-8a1ba017c657353daebf13a1f30d1a028967dc36.tar.gz
rails-8a1ba017c657353daebf13a1f30d1a028967dc36.tar.bz2
rails-8a1ba017c657353daebf13a1f30d1a028967dc36.zip
backport #4f0f1b5 into 3-2-stable. because 1.9.3-p362 warned unused variables.
Conflicts: actionpack/test/controller/render_test.rb
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/render_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb
index 8c631e218f..3964540def 100644
--- a/actionpack/test/controller/render_test.rb
+++ b/actionpack/test/controller/render_test.rb
@@ -1406,10 +1406,11 @@ class RenderTest < ActionController::TestCase
end
def test_locals_option_to_assert_template_is_not_supported
+ get :partial_collection_with_locals
+
warning_buffer = StringIO.new
$stderr = warning_buffer
- get :partial_collection_with_locals
assert_template :partial => 'customer_greeting', :locals => { :greeting => 'Bonjour' }
assert_equal "the :locals option to #assert_template is only supported in a ActionView::TestCase\n", warning_buffer.string
ensure