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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
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
Hide 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
%h4
.readme-file-title
%i
.icon-file
=
readme
.
name
=
link_to
'#README'
do
%h4
.readme-file-title
%i
.icon-file
=
readme
.
name
.wiki
=
render_readme
(
readme
)
features/steps/project/browse_files.rb
View file @
6dff16a6
...
...
@@ -77,7 +77,9 @@ class ProjectBrowseFiles < Spinach::FeatureSteps
end
step
'I click on readme file'
do
click_link
'README.md'
within
'.tree-table'
do
click_link
'README.md'
end
end
step
'I see Browse file link'
do
...
...
features/steps/project/markdown_render.rb
View file @
6dff16a6
...
...
@@ -79,9 +79,17 @@ class Spinach::Features::ProjectMarkdownRender < Spinach::FeatureSteps
end
And
'I navigate to the doc/api/README'
do
click_link
"doc"
click_link
"api"
click_link
"README.md"
within
'.tree-table'
do
click_link
"doc"
end
within
'.tree-table'
do
click_link
"api"
end
within
'.tree-table'
do
click_link
"README.md"
end
end
And
'I see correct file rendered'
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