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
e10cb110
Commit
e10cb110
authored
Mar 27, 2017
by
http://jneen.net/
Committed by
Felipe Artur
Apr 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
call and stub the correct method name
parent
c5774b2c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/gitlab/email/handler/ee/service_desk_handler.rb
lib/gitlab/email/handler/ee/service_desk_handler.rb
+1
-1
spec/lib/gitlab/email/handler/service_desk_handler_spec.rb
spec/lib/gitlab/email/handler/service_desk_handler_spec.rb
+1
-1
No files found.
lib/gitlab/email/handler/ee/service_desk_handler.rb
View file @
e10cb110
...
...
@@ -50,7 +50,7 @@ module Gitlab
end
def
send_thank_you_email!
Notify
.
thank_you_email
(
@issue
.
id
)
Notify
.
service_desk_
thank_you_email
(
@issue
.
id
)
end
def
from_address
...
...
spec/lib/gitlab/email/handler/service_desk_handler_spec.rb
View file @
e10cb110
...
...
@@ -22,7 +22,7 @@ describe Gitlab::Email::Handler::EE::ServiceDeskHandler do
it
'receives the email'
do
setup_attachment
expect
(
Notify
).
to
receive
(
:thank_you_email
).
with
(
instance_of
(
Fixnum
))
expect
(
Notify
).
to
receive
(
:
service_desk_
thank_you_email
).
with
(
instance_of
(
Fixnum
))
expect
{
receiver
.
execute
}.
to
change
{
Issue
.
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