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:
parent
dc07c0e02b
commit
c79fb32e93
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class FormatTest < Test::Unit::TestCase
|
||||||
assert_equal 'Accept', header_name
|
assert_equal 'Accept', header_name
|
||||||
|
|
||||||
headers_names = [ActiveResource::Connection::HTTP_FORMAT_HEADER_NAMES[:put], ActiveResource::Connection::HTTP_FORMAT_HEADER_NAMES[:post]]
|
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
|
end
|
||||||
|
|
||||||
def test_formats_on_single_element
|
def test_formats_on_single_element
|
||||||
|
|
Loading…
Reference in a new issue