提交 5e80b253 编写于 作者: S Santiago Pastorino

Merge pull request #8546 from hsbt/fix-testcase-strict-warning

fix testcase: ruby-2.0.0 warned unused variables
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册