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
030a5d88
Commit
030a5d88
authored
Jul 24, 2016
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spec for dashes in paths
parent
af846297
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
features/steps/project/wiki.rb
features/steps/project/wiki.rb
+4
-4
No files found.
features/steps/project/wiki.rb
View file @
030a5d88
...
...
@@ -130,15 +130,15 @@ class Spinach::Features::ProjectWiki < Spinach::FeatureSteps
step
'I create a New page with paths'
do
click_on
'New Page'
fill_in
'Page slug'
,
with:
'one/two/three'
fill_in
'Page slug'
,
with:
'one/two/three
-test
'
click_on
'Create Page'
fill_in
"wiki_content"
,
with:
'wiki content'
click_on
"Create page"
expect
(
current_path
).
to
include
'one/two/three'
expect
(
current_path
).
to
include
'one/two/three
-test
'
end
step
'I should see non-escaped link in the pages list'
do
expect
(
page
).
to
have_xpath
(
"//a[@href='/
#{
project
.
path_with_namespace
}
/wikis/one/two/three']"
)
expect
(
page
).
to
have_xpath
(
"//a[@href='/
#{
project
.
path_with_namespace
}
/wikis/one/two/three
-test
']"
)
end
step
'I edit the Wiki page with a path'
do
...
...
@@ -147,7 +147,7 @@ class Spinach::Features::ProjectWiki < Spinach::FeatureSteps
end
step
'I should see a non-escaped path'
do
expect
(
current_path
).
to
include
'one/two/three'
expect
(
current_path
).
to
include
'one/two/three
-test
'
end
step
'I should see the Editing page'
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