diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-02-26 20:31:19 -0200 |
---|---|---|
committer | Yehuda Katz <yehudakatz@YK.local> | 2010-02-26 14:54:02 -0800 |
commit | b4b158ee100b88c84178095082959a07c2621870 (patch) | |
tree | 26e276e8f856ff8da020e0f125cec9bd0117c9f6 | |
parent | 1e95f019bb0b2f1f37c5897562da691eb72c0f1c (diff) | |
download | rails-b4b158ee100b88c84178095082959a07c2621870.tar.gz rails-b4b158ee100b88c84178095082959a07c2621870.tar.bz2 rails-b4b158ee100b88c84178095082959a07c2621870.zip |
no more interpreted as grouped expression warnings on array_ext_test
-rw-r--r-- | activesupport/test/core_ext/array_ext_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/core_ext/array_ext_test.rb b/activesupport/test/core_ext/array_ext_test.rb index d4cd5ddbde..b374eca370 100644 --- a/activesupport/test/core_ext/array_ext_test.rb +++ b/activesupport/test/core_ext/array_ext_test.rb @@ -306,7 +306,7 @@ class ArrayUniqByTests < Test::Unit::TestCase def test_uniq_by assert_equal [1,2], [1,2,3,4].uniq_by { |i| i.odd? } assert_equal [1,2], [1,2,3,4].uniq_by(&:even?) - assert_equal (-5..0).to_a, (-5..5).to_a.uniq_by{ |i| i**2 } + assert_equal((-5..0).to_a, (-5..5).to_a.uniq_by{ |i| i**2 }) end def test_uniq_by! @@ -320,7 +320,7 @@ class ArrayUniqByTests < Test::Unit::TestCase a = (-5..5).to_a a.uniq_by! { |i| i**2 } - assert_equal (-5..0).to_a, a + assert_equal((-5..0).to_a, a) end end |