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
Jérome Perrin
gitlab-ce
Commits
99d5a91d
Commit
99d5a91d
authored
Jun 10, 2016
by
Timothy Andrew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failing `EmailOnPush` spec.
parent
cea3cf17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/lib/disable_email_interceptor_spec.rb
spec/lib/disable_email_interceptor_spec.rb
+2
-2
No files found.
spec/lib/disable_email_interceptor_spec.rb
View file @
99d5a91d
...
...
@@ -2,7 +2,7 @@ require 'spec_helper'
describe
DisableEmailInterceptor
,
lib:
true
do
before
do
ActionMailer
::
Base
.
register_interceptor
(
DisableEmailInterceptor
)
Mail
.
register_interceptor
(
DisableEmailInterceptor
)
end
it
'should not send emails'
do
...
...
@@ -14,7 +14,7 @@ describe DisableEmailInterceptor, lib: true do
# Removing interceptor from the list because unregister_interceptor is
# implemented in later version of mail gem
# See: https://github.com/mikel/mail/pull/705
Mail
.
class_variable_set
(
:@@delivery_interceptors
,
[]
)
Mail
.
unregister_interceptor
(
DisableEmailInterceptor
)
end
def
deliver_mail
...
...
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