BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
2388ca0f
Commit
2388ca0f
authored
Aug 08, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert notification specs
parent
7fefb039
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
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
]
...
...
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