aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/test
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-11-22 18:40:08 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2008-11-22 19:19:13 -0800
commitc79fb32e93c7ed9d5c0f39194ee48183faf3b5c9 (patch)
tree0d016f2c4f3848520e94e1866f2a6f05c6139520 /activeresource/test
parentdc07c0e02b16031e5ff7cf650f0894654d525a03 (diff)
downloadrails-c79fb32e93c7ed9d5c0f39194ee48183faf3b5c9.tar.gz
rails-c79fb32e93c7ed9d5c0f39194ee48183faf3b5c9.tar.bz2
rails-c79fb32e93c7ed9d5c0f39194ee48183faf3b5c9.zip
Ruby 1.9 compat: don't shadow local var with block arg
Diffstat (limited to 'activeresource/test')
-rw-r--r--activeresource/test/format_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activeresource/test/format_test.rb b/activeresource/test/format_test.rb
index 3194c2dcd1..c3733e13d8 100644
--- a/activeresource/test/format_test.rb
+++ b/activeresource/test/format_test.rb
@@ -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