Fix rubocop spec.
This commit is contained in:
parent
0a767f7b61
commit
72b9b87ca9
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ module CycleAnalyticsHelpers
|
|||
end
|
||||
|
||||
# Run `before_end_fn` at the midpoint between `start_time` and `end_time`
|
||||
Timecop.freeze(start_time + (end_time - start_time)/2) { before_end_fn[self, data] } if before_end_fn
|
||||
Timecop.freeze(start_time + (end_time - start_time) / 2) { before_end_fn[self, data] } if before_end_fn
|
||||
|
||||
end_time_conditions.each do |condition_name, condition_fn|
|
||||
Timecop.freeze(end_time) { condition_fn[self, data] }
|
||||
|
@ -89,7 +89,7 @@ module CycleAnalyticsHelpers
|
|||
end_time = start_time + rand(1..5).days
|
||||
|
||||
# Run `before_end_fn` at the midpoint between `start_time` and `end_time`
|
||||
Timecop.freeze(start_time + (end_time - start_time)/2) { before_end_fn[self, data] } if before_end_fn
|
||||
Timecop.freeze(start_time + (end_time - start_time) / 2) { before_end_fn[self, data] } if before_end_fn
|
||||
|
||||
end_time_conditions.each do |condition_name, condition_fn|
|
||||
Timecop.freeze(start_time) { condition_fn[self, data] }
|
||||
|
|
Loading…
Reference in a new issue