BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
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
...
@@ -130,15 +130,15 @@ class Spinach::Features::ProjectWiki < Spinach::FeatureSteps
step
'I create a New page with paths'
do
step
'I create a New page with paths'
do
click_on
'New Page'
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'
click_on
'Create Page'
fill_in
"wiki_content"
,
with:
'wiki content'
fill_in
"wiki_content"
,
with:
'wiki content'
click_on
"Create page"
click_on
"Create page"
expect
(
current_path
).
to
include
'one/two/three'
expect
(
current_path
).
to
include
'one/two/three
-test
'
end
end
step
'I should see non-escaped link in the pages list'
do
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
end
step
'I edit the Wiki page with a path'
do
step
'I edit the Wiki page with a path'
do
...
@@ -147,7 +147,7 @@ class Spinach::Features::ProjectWiki < Spinach::FeatureSteps
...
@@ -147,7 +147,7 @@ class Spinach::Features::ProjectWiki < Spinach::FeatureSteps
end
end
step
'I should see a non-escaped path'
do
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
end
step
'I should see the Editing page'
do
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