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:
parent
60c45b0d0a
commit
33302fdd14
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue