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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
3275a767
Commit
3275a767
authored
Jun 08, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix merge conflicts in WikiPages::{Create,Destroy,Update}Service specs
parent
bd71a053
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
53 deletions
+0
-53
spec/services/wiki_pages/create_service_spec.rb
spec/services/wiki_pages/create_service_spec.rb
+0
-19
spec/services/wiki_pages/destroy_service_spec.rb
spec/services/wiki_pages/destroy_service_spec.rb
+0
-14
spec/services/wiki_pages/update_service_spec.rb
spec/services/wiki_pages/update_service_spec.rb
+0
-20
No files found.
spec/services/wiki_pages/create_service_spec.rb
View file @
3275a767
...
...
@@ -2,11 +2,7 @@ require 'spec_helper'
describe
WikiPages
::
CreateService
,
services:
true
do
let
(
:project
)
{
create
(
:empty_project
)
}
<<<<<<<
HEAD
let
(
:user
)
{
create
(
:user
)
}
=======
let
(
:user
)
{
create
(
:user
)
}
>>>>>>>
master
let
(
:opts
)
do
{
...
...
@@ -19,11 +15,7 @@ describe WikiPages::CreateService, services: true do
subject
(
:service
)
{
described_class
.
new
(
project
,
user
,
opts
)
}
before
do
<<<<<<<
HEAD
project
.
add_developer
(
user
)
=======
project
.
add_master
(
user
)
>>>>>>>
master
end
describe
'#execute'
do
...
...
@@ -31,22 +23,11 @@ describe WikiPages::CreateService, services: true do
page
=
service
.
execute
expect
(
page
).
to
be_valid
<<<<<<<
HEAD
expect
(
page
.
title
).
to
eq
(
opts
[
:title
])
expect
(
page
.
content
).
to
eq
(
opts
[
:content
])
expect
(
page
.
format
).
to
eq
(
opts
[
:format
].
to_sym
)
end
it
'executes webhooks'
do
expect
(
service
).
to
receive
(
:execute_hooks
).
once
.
with
(
instance_of
(
WikiPage
),
'create'
)
=======
expect
(
page
).
to
have_attributes
(
title:
opts
[
:title
],
content:
opts
[
:content
],
format:
opts
[
:format
].
to_sym
)
end
it
'executes webhooks'
do
expect
(
service
).
to
receive
(
:execute_hooks
).
once
.
with
(
instance_of
(
WikiPage
),
'create'
)
>>>>>>>
master
service
.
execute
end
...
...
spec/services/wiki_pages/destroy_service_spec.rb
View file @
3275a767
...
...
@@ -2,32 +2,18 @@ require 'spec_helper'
describe
WikiPages
::
DestroyService
,
services:
true
do
let
(
:project
)
{
create
(
:empty_project
)
}
<<<<<<<
HEAD
let
(
:user
)
{
create
(
:user
)
}
let
(
:page
)
{
create
(
:wiki_page
)
}
=======
let
(
:user
)
{
create
(
:user
)
}
let
(
:page
)
{
create
(
:wiki_page
)
}
>>>>>>>
master
subject
(
:service
)
{
described_class
.
new
(
project
,
user
)
}
before
do
<<<<<<<
HEAD
project
.
add_developer
(
user
)
=======
project
.
add_master
(
user
)
>>>>>>>
master
end
describe
'#execute'
do
it
'executes webhooks'
do
<<<<<<<
HEAD
expect
(
service
).
to
receive
(
:execute_hooks
).
once
.
with
(
instance_of
(
WikiPage
),
'delete'
)
=======
expect
(
service
).
to
receive
(
:execute_hooks
).
once
.
with
(
instance_of
(
WikiPage
),
'delete'
)
>>>>>>>
master
service
.
execute
(
page
)
end
...
...
spec/services/wiki_pages/update_service_spec.rb
View file @
3275a767
...
...
@@ -2,13 +2,8 @@ require 'spec_helper'
describe
WikiPages
::
UpdateService
,
services:
true
do
let
(
:project
)
{
create
(
:empty_project
)
}
<<<<<<<
HEAD
let
(
:user
)
{
create
(
:user
)
}
let
(
:page
)
{
create
(
:wiki_page
)
}
=======
let
(
:user
)
{
create
(
:user
)
}
let
(
:page
)
{
create
(
:wiki_page
)
}
>>>>>>>
master
let
(
:opts
)
do
{
...
...
@@ -21,11 +16,7 @@ describe WikiPages::UpdateService, services: true do
subject
(
:service
)
{
described_class
.
new
(
project
,
user
,
opts
)
}
before
do
<<<<<<<
HEAD
project
.
add_developer
(
user
)
=======
project
.
add_master
(
user
)
>>>>>>>
master
end
describe
'#execute'
do
...
...
@@ -33,22 +24,11 @@ describe WikiPages::UpdateService, services: true do
updated_page
=
service
.
execute
(
page
)
expect
(
updated_page
).
to
be_valid
<<<<<<<
HEAD
expect
(
updated_page
.
message
).
to
eq
(
opts
[
:message
])
expect
(
updated_page
.
content
).
to
eq
(
opts
[
:content
])
expect
(
updated_page
.
format
).
to
eq
(
opts
[
:format
].
to_sym
)
end
it
'executes webhooks'
do
expect
(
service
).
to
receive
(
:execute_hooks
).
once
.
with
(
instance_of
(
WikiPage
),
'update'
)
=======
expect
(
updated_page
).
to
have_attributes
(
message:
opts
[
:message
],
content:
opts
[
:content
],
format:
opts
[
:format
].
to_sym
)
end
it
'executes webhooks'
do
expect
(
service
).
to
receive
(
:execute_hooks
).
once
.
with
(
instance_of
(
WikiPage
),
'update'
)
>>>>>>>
master
service
.
execute
(
page
)
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