Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion actionpack/test/controller/render_test.rb
Expand Up @@ -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
Expand Down