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
47dd6045
Commit
47dd6045
authored
7 years ago
by
Sean McGivern
Committed by
Felipe Artur
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make RuboCop happy
parent
8e0c0a46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/lib/gitlab/email/handler/service_desk_handler_spec.rb
spec/lib/gitlab/email/handler/service_desk_handler_spec.rb
+2
-2
No files found.
spec/lib/gitlab/email/handler/service_desk_handler_spec.rb
View file @
47dd6045
...
@@ -17,7 +17,7 @@ describe Gitlab::Email::Handler::EE::ServiceDeskHandler do
...
@@ -17,7 +17,7 @@ describe Gitlab::Email::Handler::EE::ServiceDeskHandler do
project
.
update
(
service_desk_mail_key:
'somemailkey'
)
project
.
update
(
service_desk_mail_key:
'somemailkey'
)
allow
(
Notify
).
to
receive
(
:service_desk_thank_you_email
)
allow
(
Notify
).
to
receive
(
:service_desk_thank_you_email
)
.
with
(
instance_of
(
Fixnum
)).
and_return
(
double
(
deliver_later!:
true
))
.
with
(
kind_of
(
Integer
)).
and_return
(
double
(
deliver_later!:
true
))
allow_any_instance_of
(
License
).
to
receive
(
:add_on?
).
and_call_original
allow_any_instance_of
(
License
).
to
receive
(
:add_on?
).
and_call_original
allow_any_instance_of
(
License
).
to
receive
(
:add_on?
).
with
(
'GitLab_ServiceDesk'
)
{
true
}
allow_any_instance_of
(
License
).
to
receive
(
:add_on?
).
with
(
'GitLab_ServiceDesk'
)
{
true
}
...
@@ -26,7 +26,7 @@ describe Gitlab::Email::Handler::EE::ServiceDeskHandler do
...
@@ -26,7 +26,7 @@ describe Gitlab::Email::Handler::EE::ServiceDeskHandler do
it
'sends thank you the email and creates issue'
do
it
'sends thank you the email and creates issue'
do
setup_attachment
setup_attachment
expect
(
Notify
).
to
receive
(
:service_desk_thank_you_email
).
with
(
instance_of
(
Fixnum
))
expect
(
Notify
).
to
receive
(
:service_desk_thank_you_email
).
with
(
kind_of
(
Integer
))
expect
{
receiver
.
execute
}.
to
change
{
Issue
.
count
}.
by
(
1
)
expect
{
receiver
.
execute
}.
to
change
{
Issue
.
count
}.
by
(
1
)
...
...
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