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
deda41fb
Commit
deda41fb
authored
Apr 06, 2020
by
Rajendra Kadam
Committed by
Peter Leitzen
Apr 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix duplicate spec in notification service
parent
0aff7751
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
19 deletions
+5
-19
.rubocop.yml
.rubocop.yml
+0
-1
changelogs/unreleased/notification-service-spec.yml
changelogs/unreleased/notification-service-spec.yml
+5
-0
spec/services/notification_service_spec.rb
spec/services/notification_service_spec.rb
+0
-18
No files found.
.rubocop.yml
View file @
deda41fb
...
...
@@ -385,4 +385,3 @@ Performance/ChainArrayAllocation:
RSpec/RepeatedExample
:
Exclude
:
-
'
spec/features/merge_request/user_posts_diff_notes_spec.rb'
-
'
spec/services/notification_service_spec.rb'
changelogs/unreleased/notification-service-spec.yml
0 → 100644
View file @
deda41fb
---
title
:
Update duplicate specs in notification service spec
merge_request
:
28742
author
:
Rajendra Kadam
type
:
fixed
spec/services/notification_service_spec.rb
View file @
deda41fb
...
...
@@ -1022,24 +1022,6 @@ describe NotificationService, :mailer do
should_not_email
(
@u_lazy_participant
)
end
it
'emails new assignee'
do
issue
.
assignees
=
[
@u_mentioned
]
notification
.
reassigned_issue
(
issue
,
@u_disabled
,
[
@u_mentioned
])
expect
(
issue
.
assignees
.
first
).
to
be
@u_mentioned
should_email
(
issue
.
assignees
.
first
)
should_email
(
@u_watcher
)
should_email
(
@u_guest_watcher
)
should_email
(
@u_guest_custom
)
should_email
(
@u_participant_mentioned
)
should_email
(
@subscriber
)
should_email
(
@u_custom_global
)
should_not_email
(
@unsubscriber
)
should_not_email
(
@u_participating
)
should_not_email
(
@u_disabled
)
should_not_email
(
@u_lazy_participant
)
end
it
'does not email new assignee if they are the current user'
do
issue
.
assignees
=
[
@u_mentioned
]
notification
.
reassigned_issue
(
issue
,
@u_mentioned
,
[
@u_mentioned
])
...
...
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