diff options
author | Timothy Andrew <mail@timothyandrew.net> | 2016-09-07 14:51:09 +0530 |
---|---|---|
committer | Timothy Andrew <mail@timothyandrew.net> | 2016-09-07 14:51:09 +0530 |
commit | 72b9b87ca93615640dcc022f324b2af16ceaa4eb (patch) | |
tree | ec5475446a912765f5aa6ccc1fa3f10026f3299b | |
parent | 0a767f7b618161278b66f7e1d842a51c8cab37b3 (diff) | |
download | gitlab-ce-72b9b87ca93615640dcc022f324b2af16ceaa4eb.tar.gz |
Fix rubocop spec.
-rw-r--r-- | spec/support/cycle_analytics_helpers/test_generation.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/cycle_analytics_helpers/test_generation.rb b/spec/support/cycle_analytics_helpers/test_generation.rb index 4e386691d78..52609524564 100644 --- a/spec/support/cycle_analytics_helpers/test_generation.rb +++ b/spec/support/cycle_analytics_helpers/test_generation.rb @@ -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] } |