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
Léo-Paul Géneau
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
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
7 deletions
+18
-7
app/views/projects/tree/_readme.html.haml
app/views/projects/tree/_readme.html.haml
+4
-3
features/steps/project/browse_files.rb
features/steps/project/browse_files.rb
+3
-1
features/steps/project/markdown_render.rb
features/steps/project/markdown_render.rb
+11
-3
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