Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

no more interpreted as grouped expression warnings on array_ext_test

  • Loading branch information...
commit b4b158ee100b88c84178095082959a07c2621870 1 parent 1e95f01
@spastorino spastorino authored Yehuda Katz committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/test/core_ext/array_ext_test.rb
View
4 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 @@ def test_uniq_by!
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
Please sign in to comment.
Something went wrong with that request. Please try again.