aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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