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
Boxiang Sun
gitlab-ce
Commits
df833931
Commit
df833931
authored
Oct 05, 2018
by
Jeremy Watson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed test events
parent
d7f1b3dd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
spec/workers/prune_old_events_worker_spec.rb
spec/workers/prune_old_events_worker_spec.rb
+3
-2
No files found.
spec/workers/prune_old_events_worker_spec.rb
View file @
df833931
...
...
@@ -5,8 +5,9 @@ describe PruneOldEventsWorker do
let
(
:user
)
{
create
(
:user
)
}
let!
(
:expired_event
)
{
create
(
:event
,
:closed
,
author:
user
,
created_at:
25
.
months
.
ago
)
}
let!
(
:not_expired_event
)
{
create
(
:event
,
:closed
,
author:
user
,
created_at:
1
.
day
.
ago
)
}
let!
(
:exactly_2_years_event
)
{
create
(
:event
,
:closed
,
author:
user
,
created_at:
2
.
years
.
ago
)
}
let!
(
:not_expired_1_day_event
)
{
create
(
:event
,
:closed
,
author:
user
,
created_at:
1
.
day
.
ago
)
}
let!
(
:not_expired_13_month_event
)
{
create
(
:event
,
:closed
,
author:
user
,
created_at:
13
.
months
.
ago
)
}
let!
(
:not_expired_2_years_event
)
{
create
(
:event
,
:closed
,
author:
user
,
created_at:
2
.
years
.
ago
)
}
it
'prunes events older than 2 years'
do
expect
{
subject
.
perform
}.
to
change
{
Event
.
count
}.
by
(
-
1
)
...
...
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