aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAndrew White <andrew.white@unboxed.co>2017-03-16 09:16:20 +0000
committerAndrew White <andrew.white@unboxed.co>2017-03-16 09:16:20 +0000
commitb9c399de22aa84c94bb6b2edf6f8e88b88ac5f4a (patch)
treebec051ca9b7e7472719d11d9e8793c50091c5461 /activesupport
parent505537082849d912e8e29819655b80a573e93c0c (diff)
downloadrails-b9c399de22aa84c94bb6b2edf6f8e88b88ac5f4a.tar.gz
rails-b9c399de22aa84c94bb6b2edf6f8e88b88ac5f4a.tar.bz2
rails-b9c399de22aa84c94bb6b2edf6f8e88b88ac5f4a.zip
Fix test warnings
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/core_ext/duration_test.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/activesupport/test/core_ext/duration_test.rb b/activesupport/test/core_ext/duration_test.rb
index 52fdbe677d..1648a9b270 100644
--- a/activesupport/test/core_ext/duration_test.rb
+++ b/activesupport/test/core_ext/duration_test.rb
@@ -305,17 +305,17 @@ class DurationTest < ActiveSupport::TestCase
def test_scalar_unary_minus
scalar = ActiveSupport::Duration::Scalar.new(10)
- assert_equal -10, -scalar
+ assert_equal(-10, -scalar)
assert_instance_of ActiveSupport::Duration::Scalar, -scalar
end
def test_scalar_compare
scalar = ActiveSupport::Duration::Scalar.new(10)
- assert_equal 1, scalar <=> 5
- assert_equal 0, scalar <=> 10
- assert_equal -1, scalar <=> 15
- assert_equal nil, scalar <=> "foo"
+ assert_equal(1, scalar <=> 5)
+ assert_equal(0, scalar <=> 10)
+ assert_equal(-1, scalar <=> 15)
+ assert_equal(nil, scalar <=> "foo")
end
def test_scalar_plus