backport 4f0f1b5 into 3-2-stable. because 1.9.3-p362 warned unused vari... #8763

Merged
merged 1 commit into from Jan 5, 2013
@@ -1406,10 +1406,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