Permalink
Browse files

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

  • Loading branch information...
1 parent dc07c0e commit c79fb32e93c7ed9d5c0f39194ee48183faf3b5c9 @jeremy jeremy committed Nov 23, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit c79fb32

Please sign in to comment.