aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/render_test.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-12-30 16:07:23 -0800
committerSantiago Pastorino <santiago@wyeworks.com>2012-12-30 16:07:23 -0800
commit5e80b2530ab207d6614c282334d29e4086c29c0d (patch)
tree77ff928fa33c93bb652acb0b0ecfc56f1c52c005 /actionpack/test/controller/render_test.rb
parent1304298bd921976b8390a8d90bb533fd493e2867 (diff)
parent4f0f1b5d5249e05fa173b296af2ec6f6e4f78d33 (diff)
downloadrails-5e80b2530ab207d6614c282334d29e4086c29c0d.tar.gz
rails-5e80b2530ab207d6614c282334d29e4086c29c0d.tar.bz2
rails-5e80b2530ab207d6614c282334d29e4086c29c0d.zip
Merge pull request #8546 from hsbt/fix-testcase-strict-warning
fix testcase: ruby-2.0.0 warned unused variables
Diffstat (limited to 'actionpack/test/controller/render_test.rb')
-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