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
2388ca0f
Commit
2388ca0f
authored
11 years ago
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert notification specs
parent
7fefb039
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
spec/services/notification_service_spec.rb
spec/services/notification_service_spec.rb
+5
-10
No files found.
spec/services/notification_service_spec.rb
View file @
2388ca0f
...
...
@@ -2,6 +2,7 @@ require 'spec_helper'
describe
NotificationService
do
let
(
:notification
)
{
NotificationService
.
new
}
describe
'Keys'
do
describe
:new_key
do
let
(
:key
)
{
create
(
:personal_key
)
}
...
...
@@ -158,7 +159,6 @@ describe NotificationService do
let
(
:merge_request
)
{
create
:merge_request
,
assignee:
create
(
:user
)
}
before
do
build_team
(
merge_request
.
source_project
)
build_team
(
merge_request
.
target_project
)
end
...
...
@@ -235,16 +235,11 @@ describe NotificationService do
end
end
let
(
:u_watcher
)
{
create
(
:user
,
notification_level:
Notification
::
N_WATCH
)
}
let
(
:u_participating
)
{
create
(
:user
,
notification_level:
Notification
::
N_PARTICIPATING
)
}
let
(
:u_disabled
)
{
create
(
:user
,
notification_level:
Notification
::
N_DISABLED
)
}
let
(
:u_mentioned
)
{
create
(
:user
,
username:
'mention'
,
notification_level:
Notification
::
N_WATCH
)
}
def
build_team
(
project
)
@u_watcher
=
u_watcher
@u_participating
=
u_participating
@u_disabled
=
u_disabled
@u_mentioned
=
u_mentioned
@u_watcher
=
create
(
:user
,
notification_level:
Notification
::
N_WATCH
)
@u_participating
=
create
(
:user
,
notification_level:
Notification
::
N_PARTICIPATING
)
@u_disabled
=
create
(
:user
,
notification_level:
Notification
::
N_DISABLED
)
@u_mentioned
=
create
(
:user
,
username:
'mention'
,
notification_level:
Notification
::
N_PARTICIPATING
)
project
.
team
<<
[
@u_watcher
,
:master
]
project
.
team
<<
[
@u_participating
,
:master
]
...
...
This diff is collapsed.
Click to expand it.
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