aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2015-05-14 18:48:49 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2015-05-14 23:56:10 +0900
commit90f3c28820fa126ccab4635868c9b69cc9ef2cef (patch)
treedbcf345e2e45e94622018cceac13b4d102ae01fd /activesupport
parent987a45307f8ca0b8b6cbab3763180cbe4eee18b7 (diff)
downloadrails-90f3c28820fa126ccab4635868c9b69cc9ef2cef.tar.gz
rails-90f3c28820fa126ccab4635868c9b69cc9ef2cef.tar.bz2
rails-90f3c28820fa126ccab4635868c9b69cc9ef2cef.zip
remove warning from integer ext test
this removes the following warning: ``` test/core_ext/integer_ext_test.rb:34: warning: ambiguous first argument; put parentheses or a space even after `-' operator test/core_ext/integer_ext_test.rb:38: warning: ambiguous first argument; put parentheses or a space even after `-' operator ```
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/core_ext/integer_ext_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/core_ext/integer_ext_test.rb b/activesupport/test/core_ext/integer_ext_test.rb
index 6eeadb2ace..883dc77a98 100644
--- a/activesupport/test/core_ext/integer_ext_test.rb
+++ b/activesupport/test/core_ext/integer_ext_test.rb
@@ -31,11 +31,11 @@ class IntegerExtTest < ActiveSupport::TestCase
def test_positive
assert 1.positive?
assert_not 0.positive?
- assert_not -1.positive?
+ assert_not(-1.positive?)
end
def test_negative
- assert -1.negative?
+ assert(-1.negative?)
assert_not 0.negative?
assert_not 1.negative?
end