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
7bd91278
Commit
7bd91278
authored
7 years ago
by
Stuart Nelson
Committed by
Sean McGivern
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spec for issue_due_worker
parent
556546a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
spec/workers/issue_due_worker_spec.rb
spec/workers/issue_due_worker_spec.rb
+7
-0
No files found.
spec/workers/issue_due_worker_spec.rb
View file @
7bd91278
...
...
@@ -5,6 +5,13 @@ describe IssueDueWorker do
let
(
:worker
)
{
described_class
.
new
}
it
'finds issues due on the day run'
do
issue1
=
create
(
:issue
,
:opened
,
due_date:
Date
.
today
)
issue3
=
create
(
:issue
,
:opened
,
due_date:
3
.
days
.
from_now
)
issue4
=
create
(
:issue
,
:opened
,
due_date:
4
.
days
.
from_now
)
expect_any_instance_of
(
NotificationService
).
to
receive
(
:issue_due_email
).
with
(
issue1
)
worker
.
perform
end
end
end
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