Permalink
Browse files

change spy of after invoked controller action. because ruby-2.0.0 wan…

…ed unused variables
  • Loading branch information...
1 parent 60214e8 commit 4f0f1b5d5249e05fa173b296af2ec6f6e4f78d33 @hsbt hsbt committed Dec 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 actionpack/test/controller/render_test.rb
@@ -1433,10 +1433,11 @@ def test_partial_collection_with_locals
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

0 comments on commit 4f0f1b5

Please sign in to comment.