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
iv
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
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'
...
@@ -2,6 +2,7 @@ require 'spec_helper'
describe
NotificationService
do
describe
NotificationService
do
let
(
:notification
)
{
NotificationService
.
new
}
let
(
:notification
)
{
NotificationService
.
new
}
describe
'Keys'
do
describe
'Keys'
do
describe
:new_key
do
describe
:new_key
do
let
(
:key
)
{
create
(
:personal_key
)
}
let
(
:key
)
{
create
(
:personal_key
)
}
...
@@ -158,7 +159,6 @@ describe NotificationService do
...
@@ -158,7 +159,6 @@ describe NotificationService do
let
(
:merge_request
)
{
create
:merge_request
,
assignee:
create
(
:user
)
}
let
(
:merge_request
)
{
create
:merge_request
,
assignee:
create
(
:user
)
}
before
do
before
do
build_team
(
merge_request
.
source_project
)
build_team
(
merge_request
.
target_project
)
build_team
(
merge_request
.
target_project
)
end
end
...
@@ -235,16 +235,11 @@ describe NotificationService do
...
@@ -235,16 +235,11 @@ describe NotificationService do
end
end
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
)
def
build_team
(
project
)
@u_watcher
=
u_watcher
@u_watcher
=
create
(
:user
,
notification_level:
Notification
::
N_WATCH
)
@u_participating
=
u_participating
@u_participating
=
create
(
:user
,
notification_level:
Notification
::
N_PARTICIPATING
)
@u_disabled
=
u_disabled
@u_disabled
=
create
(
:user
,
notification_level:
Notification
::
N_DISABLED
)
@u_mentioned
=
u_mentioned
@u_mentioned
=
create
(
:user
,
username:
'mention'
,
notification_level:
Notification
::
N_PARTICIPATING
)
project
.
team
<<
[
@u_watcher
,
:master
]
project
.
team
<<
[
@u_watcher
,
:master
]
project
.
team
<<
[
@u_participating
,
: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