Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

fix testcase: ruby-2.0.0 warned unused variables
  • Loading branch information...
commit 5e80b2530ab207d6614c282334d29e4086c29c0d 2 parents 1304298 + 4f0f1b5
@spastorino spastorino authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  actionpack/test/controller/render_test.rb
View
3  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 5e80b25

Please sign in to comment.
Something went wrong with that request. Please try again.