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
Boxiang Sun
gitlab-ce
Commits
c6b9767e
Commit
c6b9767e
authored
Jan 23, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test if the views behave correctly with reference style relative links.
parent
462161a3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
0 deletions
+34
-0
features/project/source/markdown_render.feature
features/project/source/markdown_render.feature
+12
-0
features/steps/project/project_markdown_render.rb
features/steps/project/project_markdown_render.rb
+22
-0
spec/seed_project.tar.gz
spec/seed_project.tar.gz
+0
-0
No files found.
features/project/source/markdown_render.feature
View file @
c6b9767e
...
...
@@ -16,6 +16,18 @@ Feature: Project markdown render
And
I click on Rake tasks in README
Then
I should see correct directory rendered
Scenario
:
I
view README in master branch to see reference links to directory
Then
I should see files from repository in master
And
I should see rendered README which contains correct links
And
I click on GitLab API doc directory in README
Then
I should see correct doc/api directory rendered
Scenario
:
I
view README in master branch to see reference links to file
Then
I should see files from repository in master
And
I should see rendered README which contains correct links
And
I click on Maintenance in README
Then
I should see correct maintenance file rendered
Scenario
:
I
navigate to doc directory to view documentation in master
And
I navigate to the doc/api/README
And
I see correct file rendered
...
...
features/steps/project/project_markdown_render.rb
View file @
c6b9767e
...
...
@@ -21,6 +21,8 @@ class Spinach::Features::ProjectMarkdownRender < Spinach::FeatureSteps
page
.
should
have_link
"GitLab API website"
page
.
should
have_link
"Rake tasks"
page
.
should
have_link
"backup and restore procedure"
page
.
should
have_link
"GitLab API doc directory"
page
.
should
have_link
"Maintenance"
end
And
'I click on Gitlab API in README'
do
...
...
@@ -42,6 +44,26 @@ class Spinach::Features::ProjectMarkdownRender < Spinach::FeatureSteps
page
.
should
have_content
"maintenance.md"
end
And
'I click on GitLab API doc directory in README'
do
click_link
"GitLab API doc directory"
end
Then
'I should see correct doc/api directory rendered'
do
current_path
.
should
==
project_tree_path
(
@project
,
"master/doc/api"
)
page
.
should
have_content
"README.md"
page
.
should
have_content
"users.md"
end
And
'I click on Maintenance in README'
do
click_link
"Maintenance"
end
Then
'I should see correct maintenance file rendered'
do
current_path
.
should
==
project_blob_path
(
@project
,
"doc/raketasks/maintenance.md"
)
page
.
should
have_content
"bundle exec rake gitlab:env:info RAILS_ENV=production"
end
And
'I navigate to the doc/api/README'
do
click_link
"doc"
click_link
"api"
...
...
spec/seed_project.tar.gz
View file @
c6b9767e
No preview for this file type
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