Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
72b9b87c
Commit
72b9b87c
authored
8 years ago
by
Timothy Andrew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rubocop spec.
parent
0a767f7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/support/cycle_analytics_helpers/test_generation.rb
spec/support/cycle_analytics_helpers/test_generation.rb
+2
-2
No files found.
spec/support/cycle_analytics_helpers/test_generation.rb
View file @
72b9b87c
...
...
@@ -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
]
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment