1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix grouped expression warning - warning: (...) interpreted as grouped expression

This commit is contained in:
Vipul A M 2014-11-06 19:19:21 +05:30
parent 60c45b0d0a
commit 33302fdd14

View file

@ -115,11 +115,11 @@ class RangeTest < ActiveSupport::TestCase
def test_date_time_with_each
datetime = DateTime.now
assert ((datetime - 1.hour)..datetime).each {}
assert(((datetime - 1.hour)..datetime).each {})
end
def test_date_time_with_step
datetime = DateTime.now
assert ((datetime - 1.hour)..datetime).step(1) {}
assert(((datetime - 1.hour)..datetime).step(1) {})
end
end