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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
ebbae5d3
Commit
ebbae5d3
authored
Oct 14, 2020
by
Sean Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak spec and changelog title
parent
59b3d364
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
changelogs/unreleased/241663-incident-sla-cron-job.yml
changelogs/unreleased/241663-incident-sla-cron-job.yml
+1
-1
ee/spec/models/issuable_sla_spec.rb
ee/spec/models/issuable_sla_spec.rb
+5
-3
No files found.
changelogs/unreleased/241663-incident-sla-cron-job.yml
View file @
ebbae5d3
---
title
:
Add Missed SLA label via Cron job
title
:
Schedule adding "Missed SLA" label to issues
merge_request
:
44546
author
:
type
:
added
ee/spec/models/issuable_sla_spec.rb
View file @
ebbae5d3
...
...
@@ -17,7 +17,7 @@ RSpec.describe IssuableSla do
let_it_be
(
:project
)
{
create
(
:project
)
}
let_it_be_with_reload
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let_it_be_with_reload
(
:issuable_sla
)
{
create
(
:issuable_sla
,
issue:
issue
,
due_at:
Time
.
current
-
1
.
hour
)
}
let_it_be_with_reload
(
:issuable_sla
)
{
create
(
:issuable_sla
,
issue:
issue
,
due_at:
1
.
hour
.
ago
)
}
context
'issue closed'
do
before
do
...
...
@@ -30,13 +30,15 @@ RSpec.describe IssuableSla do
context
'issue opened'
do
context
'due_at has not passed'
do
before
do
issuable_sla
.
update!
(
due_at:
Time
.
current
+
1
.
hour
)
issuable_sla
.
update!
(
due_at:
1
.
hour
.
from_now
)
end
it
{
is_expected
.
to
be_empty
}
end
it
{
is_expected
.
to
contain_exactly
(
issuable_sla
)
}
context
'when due date has passed'
do
it
{
is_expected
.
to
contain_exactly
(
issuable_sla
)
}
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