aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorKuldeep Aggarwal <kd.engineer@yahoo.co.in>2014-05-15 00:12:21 +0530
committerKuldeep Aggarwal <kd.engineer@yahoo.co.in>2014-05-15 00:12:21 +0530
commitbf68ccc71d4121866ed758eec82799df833b3c29 (patch)
treef849c9569a686d4ac15217b4ccbfbcc09064217d /activerecord
parent1560370c3c6324545bd441aa68fef6faed309634 (diff)
downloadrails-bf68ccc71d4121866ed758eec82799df833b3c29.tar.gz
rails-bf68ccc71d4121866ed758eec82799df833b3c29.tar.bz2
rails-bf68ccc71d4121866ed758eec82799df833b3c29.zip
remove warning `ambiguous first argument; put parentheses or even spaces`
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/adapters/postgresql/datatype_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/datatype_test.rb b/activerecord/test/cases/adapters/postgresql/datatype_test.rb
index 897b603321..ea433d391f 100644
--- a/activerecord/test/cases/adapters/postgresql/datatype_test.rb
+++ b/activerecord/test/cases/adapters/postgresql/datatype_test.rb
@@ -138,7 +138,7 @@ class PostgresqlDataTypeTest < ActiveRecord::TestCase
def test_number_values
assert_equal 123.456, @first_number.single
assert_equal 123456.789, @first_number.double
- assert_equal -::Float::INFINITY, @second_number.single
+ assert_equal(-::Float::INFINITY, @second_number.single)
assert_equal ::Float::INFINITY, @second_number.double
assert_same ::Float::NAN, @third_number.double
end