From aa4ad404c6aa4feccc69b8d7222bcfd1b1903215 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sat, 15 Dec 2007 02:28:20 +0000 Subject: Ruby 1.9 compat: shadowed vars, kcode git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8402 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/test/core_ext/hash_ext_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'activesupport/test/core_ext/hash_ext_test.rb') diff --git a/activesupport/test/core_ext/hash_ext_test.rb b/activesupport/test/core_ext/hash_ext_test.rb index 3763f47c68..4d01faa5d2 100644 --- a/activesupport/test/core_ext/hash_ext_test.rb +++ b/activesupport/test/core_ext/hash_ext_test.rb @@ -145,7 +145,7 @@ class HashExtTest < Test::Unit::TestCase assert_equal updated_with_mixed[:a], 1 assert_equal updated_with_mixed['b'], 2 - assert [updated_with_strings, updated_with_symbols, updated_with_mixed].all? {|hash| hash.keys.size == 2} + assert [updated_with_strings, updated_with_symbols, updated_with_mixed].all? { |h| h.keys.size == 2 } end def test_indifferent_merging @@ -371,8 +371,8 @@ class HashToXmlTest < Test::Unit::TestCase end def test_one_level_with_yielding - xml = { :name => "David", :street => "Paulina" }.to_xml(@xml_options) do |xml| - xml.creator("Rails") + xml = { :name => "David", :street => "Paulina" }.to_xml(@xml_options) do |x| + x.creator("Rails") end assert_equal "", xml.first(8) -- cgit v1.2.3