aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <shibata.hiroshi@gmail.com>2012-12-20 16:49:00 +0900
committerSHIBATA Hiroshi <shibata.hiroshi@gmail.com>2012-12-20 17:14:22 +0900
commit4f0f1b5d5249e05fa173b296af2ec6f6e4f78d33 (patch)
tree7a190f36aafade1c1c3c9c74821ed1f777cd1104
parent60214e80572ca8a4ddb4f2af4a6653efa2e74023 (diff)
downloadrails-4f0f1b5d5249e05fa173b296af2ec6f6e4f78d33.tar.gz
rails-4f0f1b5d5249e05fa173b296af2ec6f6e4f78d33.tar.bz2
rails-4f0f1b5d5249e05fa173b296af2ec6f6e4f78d33.zip
change spy of after invoked controller action. because ruby-2.0.0 waned unused variables
-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 7640bc12a2..6d91415e4f 100644
--- a/actionpack/test/controller/render_test.rb
+++ b/actionpack/test/controller/render_test.rb
@@ -1433,10 +1433,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