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
c95bc655
Commit
c95bc655
authored
Jan 28, 2016
by
Josh Frye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tests
parent
f9218898
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
3 deletions
+27
-3
spec/services/notes/create_service_spec.rb
spec/services/notes/create_service_spec.rb
+1
-3
spec/services/notes/post_process_service_spec.rb
spec/services/notes/post_process_service_spec.rb
+26
-0
No files found.
spec/services/notes/create_service_spec.rb
View file @
c95bc655
...
...
@@ -15,8 +15,6 @@ describe Notes::CreateService, services: true do
noteable_id:
issue
.
id
}
expect
(
project
).
to
receive
(
:execute_hooks
)
expect
(
project
).
to
receive
(
:execute_services
)
@note
=
Notes
::
CreateService
.
new
(
project
,
user
,
opts
).
execute
end
...
...
spec/services/notes/post_process_service_spec.rb
0 → 100644
View file @
c95bc655
require
'spec_helper'
describe
Notes
::
CreateService
,
services:
true
do
let
(
:project
)
{
create
(
:empty_project
)
}
let
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let
(
:user
)
{
create
(
:user
)
}
describe
:execute
do
before
do
project
.
team
<<
[
user
,
:master
]
note_opts
=
{
note:
'Awesome comment'
,
noteable_type:
'Issue'
,
noteable_id:
issue
.
id
}
@note
=
Notes
::
CreateService
.
new
(
project
,
user
,
note_opts
).
execute
end
it
{
expect
(
project
).
to
receive
(
:execute_hooks
)
expect
(
project
).
to
receive
(
:execute_services
)
Notes
::
PostProcessService
.
new
(
@note
).
execute
}
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