1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Ruby 1.9 compat: don't shadow local var with block arg

This commit is contained in:
Jeremy Kemper 2008-11-22 18:40:08 -08:00
parent dc07c0e02b
commit c79fb32e93

View file

@ -15,7 +15,7 @@ class FormatTest < Test::Unit::TestCase
assert_equal 'Accept', header_name
headers_names = [ActiveResource::Connection::HTTP_FORMAT_HEADER_NAMES[:put], ActiveResource::Connection::HTTP_FORMAT_HEADER_NAMES[:post]]
headers_names.each{|header_name| assert_equal 'Content-Type', header_name}
headers_names.each{ |name| assert_equal 'Content-Type', name }
end
def test_formats_on_single_element