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
Tatuya Kamada
gitlab-ce
Commits
ef8badb6
Commit
ef8badb6
authored
Sep 20, 2016
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reload issues in spec to ensure label<->issue mapping properly loaded
parent
0a2649ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
spec/services/notification_service_spec.rb
spec/services/notification_service_spec.rb
+2
-0
No files found.
spec/services/notification_service_spec.rb
View file @
ef8badb6
...
@@ -379,6 +379,7 @@ describe NotificationService, services: true do
...
@@ -379,6 +379,7 @@ describe NotificationService, services: true do
it
"emails subscribers of the issue's labels"
do
it
"emails subscribers of the issue's labels"
do
subscriber
=
create
(
:user
)
subscriber
=
create
(
:user
)
label
=
create
(
:label
,
issues:
[
issue
])
label
=
create
(
:label
,
issues:
[
issue
])
issue
.
reload
label
.
toggle_subscription
(
subscriber
)
label
.
toggle_subscription
(
subscriber
)
notification
.
new_issue
(
issue
,
@u_disabled
)
notification
.
new_issue
(
issue
,
@u_disabled
)
...
@@ -399,6 +400,7 @@ describe NotificationService, services: true do
...
@@ -399,6 +400,7 @@ describe NotificationService, services: true do
project
.
team
<<
[
guest
,
:guest
]
project
.
team
<<
[
guest
,
:guest
]
label
=
create
(
:label
,
issues:
[
confidential_issue
])
label
=
create
(
:label
,
issues:
[
confidential_issue
])
confidential_issue
.
reload
label
.
toggle_subscription
(
non_member
)
label
.
toggle_subscription
(
non_member
)
label
.
toggle_subscription
(
author
)
label
.
toggle_subscription
(
author
)
label
.
toggle_subscription
(
assignee
)
label
.
toggle_subscription
(
assignee
)
...
...
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