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
Kazuhiko Shiozaki
gitlab-ce
Commits
f3d4f2ea
Commit
f3d4f2ea
authored
Jan 28, 2016
by
Josh Frye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rubocop error
parent
c95bc655
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/services/notes/post_process_service_spec.rb
spec/services/notes/post_process_service_spec.rb
+3
-3
No files found.
spec/services/notes/post_process_service_spec.rb
View file @
f3d4f2ea
require
'spec_helper'
require
'spec_helper'
describe
Notes
::
Create
Service
,
services:
true
do
describe
Notes
::
PostProcess
Service
,
services:
true
do
let
(
:project
)
{
create
(
:empty_project
)
}
let
(
:project
)
{
create
(
:empty_project
)
}
let
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
...
@@ -17,10 +17,10 @@ describe Notes::CreateService, services: true do
...
@@ -17,10 +17,10 @@ describe Notes::CreateService, services: true do
@note
=
Notes
::
CreateService
.
new
(
project
,
user
,
note_opts
).
execute
@note
=
Notes
::
CreateService
.
new
(
project
,
user
,
note_opts
).
execute
end
end
it
{
it
do
expect
(
project
).
to
receive
(
:execute_hooks
)
expect
(
project
).
to
receive
(
:execute_hooks
)
expect
(
project
).
to
receive
(
:execute_services
)
expect
(
project
).
to
receive
(
:execute_services
)
Notes
::
PostProcessService
.
new
(
@note
).
execute
Notes
::
PostProcessService
.
new
(
@note
).
execute
}
end
end
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