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
6dff16a6
Commit
6dff16a6
authored
Sep 17, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'readme-anchor' of
https://dev.gitlab.org/dzaporozhets/gitlabhq
into 7-4-pre
parents
630d0424
d771253b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
_readme.html.haml
app/views/projects/tree/_readme.html.haml
+1
-0
browse_files.rb
features/steps/project/browse_files.rb
+2
-0
markdown_render.rb
features/steps/project/markdown_render.rb
+8
-0
No files found.
app/views/projects/tree/_readme.html.haml
View file @
6dff16a6
%article
.readme-holder
#README
%article
.readme-holder
#README
=
link_to
'#README'
do
%h4
.readme-file-title
%h4
.readme-file-title
%i
.icon-file
%i
.icon-file
=
readme
.
name
=
readme
.
name
...
...
features/steps/project/browse_files.rb
View file @
6dff16a6
...
@@ -77,8 +77,10 @@ class ProjectBrowseFiles < Spinach::FeatureSteps
...
@@ -77,8 +77,10 @@ class ProjectBrowseFiles < Spinach::FeatureSteps
end
end
step
'I click on readme file'
do
step
'I click on readme file'
do
within
'.tree-table'
do
click_link
'README.md'
click_link
'README.md'
end
end
end
step
'I see Browse file link'
do
step
'I see Browse file link'
do
page
.
should
have_link
'Browse File »'
page
.
should
have_link
'Browse File »'
...
...
features/steps/project/markdown_render.rb
View file @
6dff16a6
...
@@ -79,10 +79,18 @@ class Spinach::Features::ProjectMarkdownRender < Spinach::FeatureSteps
...
@@ -79,10 +79,18 @@ class Spinach::Features::ProjectMarkdownRender < Spinach::FeatureSteps
end
end
And
'I navigate to the doc/api/README'
do
And
'I navigate to the doc/api/README'
do
within
'.tree-table'
do
click_link
"doc"
click_link
"doc"
end
within
'.tree-table'
do
click_link
"api"
click_link
"api"
end
within
'.tree-table'
do
click_link
"README.md"
click_link
"README.md"
end
end
end
And
'I see correct file rendered'
do
And
'I see correct file rendered'
do
current_path
.
should
==
project_blob_path
(
@project
,
"markdown/doc/api/README.md"
)
current_path
.
should
==
project_blob_path
(
@project
,
"markdown/doc/api/README.md"
)
...
...
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