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
4e0c913c
Commit
4e0c913c
authored
Oct 29, 2020
by
charlie ablett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix indentation
parent
c5f77343
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
spec/services/labels/promote_service_spec.rb
spec/services/labels/promote_service_spec.rb
+6
-6
No files found.
spec/services/labels/promote_service_spec.rb
View file @
4e0c913c
...
...
@@ -73,12 +73,12 @@ RSpec.describe Labels::PromoteService do
change
(
project_3
.
labels
,
:count
).
by
(
-
1
)
end
it
'keeps users\' subscriptions'
do
user2
=
create
(
:user
)
project_label_1_1
.
subscriptions
.
create!
(
user:
user
,
subscribed:
true
)
project_label_2_1
.
subscriptions
.
create!
(
user:
user
,
subscribed:
true
)
project_label_3_2
.
subscriptions
.
create!
(
user:
user
,
subscribed:
true
)
project_label_2_1
.
subscriptions
.
create!
(
user:
user2
,
subscribed:
true
)
it
'keeps users\' subscriptions'
do
user2
=
create
(
:user
)
project_label_1_1
.
subscriptions
.
create!
(
user:
user
,
subscribed:
true
)
project_label_2_1
.
subscriptions
.
create!
(
user:
user
,
subscribed:
true
)
project_label_3_2
.
subscriptions
.
create!
(
user:
user
,
subscribed:
true
)
project_label_2_1
.
subscriptions
.
create!
(
user:
user2
,
subscribed:
true
)
expect
{
service
.
execute
(
project_label_1_1
)
}.
to
change
{
Subscription
.
count
}.
from
(
4
).
to
(
3
)
...
...
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