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
iv
gitlab-ce
Commits
3f818a3d
Commit
3f818a3d
authored
Mar 17, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update wiki tests.
parent
f04d5bfa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
features/steps/project/markdown_render.rb
features/steps/project/markdown_render.rb
+5
-6
No files found.
features/steps/project/markdown_render.rb
View file @
3f818a3d
...
...
@@ -203,7 +203,7 @@ class Spinach::Features::ProjectMarkdownRender < Spinach::FeatureSteps
end
And
'I add various links to the wiki page'
do
fill_in
"wiki[content]"
,
with:
"[test](test)
\n
[GitLab API doc](
doc/api/README.md)
\n
[Rake tasks](doc/
raketasks)
\n
"
fill_in
"wiki[content]"
,
with:
"[test](test)
\n
[GitLab API doc](
api)
\n
[Rake tasks](
raketasks)
\n
"
fill_in
"wiki[message]"
,
with:
"Adding links to wiki"
click_button
"Create page"
end
...
...
@@ -242,8 +242,8 @@ class Spinach::Features::ProjectMarkdownRender < Spinach::FeatureSteps
end
Then
'I see Gitlab API document'
do
current_path
.
should
==
project_
blob_path
(
@project
,
"master/doc/api/README.md
"
)
page
.
should
have_content
"
Status codes
"
current_path
.
should
==
project_
wiki_path
(
@project
,
"api
"
)
page
.
should
have_content
"
Editing
"
end
And
'I click on Rake tasks link'
do
...
...
@@ -251,9 +251,8 @@ class Spinach::Features::ProjectMarkdownRender < Spinach::FeatureSteps
end
Then
'I see Rake tasks directory'
do
current_path
.
should
==
project_tree_path
(
@project
,
"master/doc/raketasks"
)
page
.
should
have_content
"backup_restore.md"
page
.
should
have_content
"maintenance.md"
current_path
.
should
==
project_wiki_path
(
@project
,
"raketasks"
)
page
.
should
have_content
"Editing"
end
Given
'I go directory which contains README file'
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