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
287afd6c
Commit
287afd6c
authored
Apr 28, 2020
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove uses of :with_real_page
parent
ab97b007
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spec/services/git/wiki_push_service_spec.rb
spec/services/git/wiki_push_service_spec.rb
+5
-5
No files found.
spec/services/git/wiki_push_service_spec.rb
View file @
287afd6c
...
...
@@ -49,8 +49,8 @@ describe Git::WikiPushService, services: true do
end
context
'one creation, one update, one deletion'
do
let
(
:wiki_page_a
)
{
create
(
:wiki_page
,
:with_real_page
,
project:
project
)
}
let
(
:wiki_page_b
)
{
create
(
:wiki_page
,
:with_real_page
,
project:
project
)
}
let
(
:wiki_page_a
)
{
create
(
:wiki_page
,
project:
project
)
}
let
(
:wiki_page_b
)
{
create
(
:wiki_page
,
project:
project
)
}
let
(
:count
)
{
Event
::
WIKI_ACTIONS
.
count
}
let
(
:setup
)
{
wiki_page_a
&&
wiki_page_b
}
...
...
@@ -188,7 +188,7 @@ describe Git::WikiPushService, services: true do
end
context
'when a page we already know about has been updated'
do
let
(
:wiki_page
)
{
create
(
:wiki_page
,
:with_real_page
,
project:
project
)
}
let
(
:wiki_page
)
{
create
(
:wiki_page
,
project:
project
)
}
let
(
:setup
)
{
create
(
:wiki_page_meta
,
:for_wiki_page
,
wiki_page:
wiki_page
)
}
before
do
...
...
@@ -228,7 +228,7 @@ describe Git::WikiPushService, services: true do
end
context
'when a page we do not know about has been updated'
do
let
(
:wiki_page
)
{
create
(
:wiki_page
,
:with_real_page
,
project:
project
)
}
let
(
:wiki_page
)
{
create
(
:wiki_page
,
project:
project
)
}
let
(
:setup
)
{
wiki_page
}
before
do
...
...
@@ -254,7 +254,7 @@ describe Git::WikiPushService, services: true do
end
context
'when a page we do not know about has been deleted'
do
let
(
:wiki_page
)
{
create
(
:wiki_page
,
:with_real_page
,
project:
project
)
}
let
(
:wiki_page
)
{
create
(
:wiki_page
,
project:
project
)
}
let
(
:setup
)
{
wiki_page
}
before
do
...
...
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