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
6aa44382
Commit
6aa44382
authored
Jul 26, 2017
by
http://jneen.net/
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rm a now-useless spec
parent
4caa5a7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
34 deletions
+0
-34
spec/services/notification_recipient_service_spec.rb
spec/services/notification_recipient_service_spec.rb
+0
-34
No files found.
spec/services/notification_recipient_service_spec.rb
deleted
100644 → 0
View file @
4caa5a7e
require
'spec_helper'
describe
NotificationRecipientService
do
set
(
:user
)
{
create
(
:user
)
}
set
(
:project
)
{
create
(
:project
,
:public
)
}
set
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
set
(
:watcher
)
do
watcher
=
create
(
:user
)
setting
=
watcher
.
notification_settings_for
(
project
)
setting
.
level
=
:watch
setting
.
save
watcher
end
subject
{
described_class
.
new
(
project
)
}
describe
'#build_recipients'
do
it
'does not modify the participants of the target'
do
expect
{
subject
.
build_recipients
(
issue
,
user
,
action: :new_issue
)
}
.
not_to
change
{
issue
.
participants
(
user
)
}
end
end
describe
'#build_new_note_recipients'
do
set
(
:note
)
{
create
(
:note_on_issue
,
noteable:
issue
,
project:
project
)
}
it
'does not modify the participants of the target'
do
expect
{
subject
.
build_new_note_recipients
(
note
)
}
.
not_to
change
{
note
.
noteable
.
participants
(
note
.
author
)
}
end
end
end
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