Merge branch 'readme-anchor' of https://dev.gitlab.org/dzaporozhets/gitlabhq into 7-4-pre

This commit is contained in:
Dmitriy Zaporozhets 2014-09-17 21:31:22 +03:00
commit 6dff16a679
3 changed files with 18 additions and 7 deletions

View File

@ -1,6 +1,7 @@
%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)

View File

@ -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

View File

@ -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