Commit 6dff16a6 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

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

parents 630d0424 d771253b
%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
......
...@@ -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 »'
......
...@@ -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")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment