Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2013-10-14 17:55:44 +0400
committerMarin Jankovski <maxlazio@gmail.com>2013-10-14 18:47:46 +0400
commite649ea2fc5e765f11579ad9aa8e90e69764bd590 (patch)
tree8a2cfb65220e649f02efab86fbefe30d433c0fd0 /features
parentace9ff4a46d2cc97446fb984d86c3e468ff2e661 (diff)
Links in Readme in tree view.
Diffstat (limited to 'features')
-rw-r--r--features/project/source/markdown_render.feature7
-rw-r--r--features/steps/project/project_markdown_render.rb16
2 files changed, 21 insertions, 2 deletions
diff --git a/features/project/source/markdown_render.feature b/features/project/source/markdown_render.feature
index a7a9cee7b0d..8b4b89e85af 100644
--- a/features/project/source/markdown_render.feature
+++ b/features/project/source/markdown_render.feature
@@ -72,4 +72,9 @@ Feature: Project markdown render
Scenario: I visit the help page with markdown
Given I visit to the help page
And I select a page with markdown
- Then I should see a help page with markdown \ No newline at end of file
+ Then I should see a help page with markdown
+
+ Scenario: Tree view should have correct links in README
+ Given I go directory which contains README file
+ And I click on a relative link in README
+ Then I should see the correct markdown
diff --git a/features/steps/project/project_markdown_render.rb b/features/steps/project/project_markdown_render.rb
index 951c831838d..95d73c93621 100644
--- a/features/steps/project/project_markdown_render.rb
+++ b/features/steps/project/project_markdown_render.rb
@@ -162,4 +162,18 @@ class Spinach::Features::ProjectMarkdownRender < Spinach::FeatureSteps
Then 'I should see a help page with markdown' do
page.should have_content "GitLab provides some specific rake tasks to enable special features or perform maintenance tasks"
end
-end \ No newline at end of file
+
+ Given 'I go directory which contains README file' do
+ visit project_tree_path(@project, "master/doc/api")
+ current_path.should == project_tree_path(@project, "master/doc/api")
+ end
+
+ And 'I click on a relative link in README' do
+ click_link "Users"
+ end
+
+ Then 'I should see the correct markdown' do
+ current_path.should == project_blob_path(@project, "master/doc/api/users.md")
+ page.should have_content "List users"
+ end
+end