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
bb001ac3
Commit
bb001ac3
authored
Sep 12, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use WikiPages::CreateService in spec/features/projects/wiki/user_updates_wiki_page_spec.rb
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
19df4a8a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
spec/features/projects/wiki/user_updates_wiki_page_spec.rb
spec/features/projects/wiki/user_updates_wiki_page_spec.rb
+2
-12
No files found.
spec/features/projects/wiki/user_updates_wiki_page_spec.rb
View file @
bb001ac3
...
@@ -58,18 +58,8 @@ describe 'User updates wiki page' do
...
@@ -58,18 +58,8 @@ describe 'User updates wiki page' do
end
end
context
'when wiki is not empty'
do
context
'when wiki is not empty'
do
# This facory call is shorter:
let
(
:project_wiki
)
{
create
(
:project_wiki
,
project:
project
,
user:
project
.
creator
)
}
#
let!
(
:wiki_page
)
{
create
(
:wiki_page
,
wiki:
project_wiki
,
attrs:
{
title:
'home'
,
content:
'Home page'
})
}
# create(:wiki_page, wiki: create(:project, namespace: user.namespace).wiki, attrs: { title: 'home', content: 'Home page' })
#
# But it always fails with this:
#
# Failure/Error: click_link('Edit')
# Capybara::ElementNotFound:
# Unable to find visible link "Edit"
let
(
:project
)
{
create
(
:project
,
namespace:
user
.
namespace
)
}
let!
(
:wiki_page
)
{
create
(
:wiki_page
,
wiki:
project
.
wiki
,
attrs:
{
title:
'home'
,
content:
'Home page'
})
}
before
do
before
do
visit
(
project_wikis_path
(
project
))
visit
(
project_wikis_path
(
project
))
...
...
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