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
Léo-Paul Géneau
gitlab-ce
Commits
25874a87
Commit
25874a87
authored
Oct 05, 2018
by
Jeremy Watson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added new test and updated all event ids
parent
df833931
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
spec/workers/prune_old_events_worker_spec.rb
spec/workers/prune_old_events_worker_spec.rb
+8
-3
No files found.
spec/workers/prune_old_events_worker_spec.rb
View file @
25874a87
...
@@ -16,12 +16,17 @@ describe PruneOldEventsWorker do
...
@@ -16,12 +16,17 @@ describe PruneOldEventsWorker do
it
'leaves fresh events'
do
it
'leaves fresh events'
do
subject
.
perform
subject
.
perform
expect
(
not_expired_event
.
reload
).
to
be_present
expect
(
not_expired_
1_day_
event
.
reload
).
to
be_present
end
end
it
'leaves events from
exactly 12
months ago'
do
it
'leaves events from
13
months ago'
do
subject
.
perform
subject
.
perform
expect
(
exactly_12_months_event
).
to
be_present
expect
(
not_expired_13_month_event
.
reload
).
to
be_present
end
it
'leaves events from 2 years ago'
do
subject
.
perform
expect
(
not_expired_2_years_event
).
to
be_present
end
end
end
end
end
end
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