Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit c79fb32e93c7ed9d5c0f39194ee48183faf3b5c9 1 parent dc07c0e
@jeremy jeremy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activeresource/test/format_test.rb
View
2  activeresource/test/format_test.rb
@@ -15,7 +15,7 @@ def test_http_format_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.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
Please sign in to comment.
Something went wrong with that request. Please try again.