summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2013-10-11 21:41:33 +0200
committerMarin Jankovski <maxlazio@gmail.com>2013-10-11 21:41:33 +0200
commitad3defa3c2f7c3b1d5a15e0f145f424302eb23a4 (patch)
tree32853ce883e266d1a9e25752ee3ca9bc935ac48a /features
parentf81532b5b929d5fa8fdf72a71eb036b0cf27735b (diff)
downloadgitlab-ce-ad3defa3c2f7c3b1d5a15e0f145f424302eb23a4.tar.gz
Skip relative links render in help page.
Diffstat (limited to 'features')
-rw-r--r--features/project/source/markdown_render.feature5
-rw-r--r--features/steps/project/project_markdown_render.rb12
2 files changed, 17 insertions, 0 deletions
diff --git a/features/project/source/markdown_render.feature b/features/project/source/markdown_render.feature
index d461ae86c81..a7a9cee7b0d 100644
--- a/features/project/source/markdown_render.feature
+++ b/features/project/source/markdown_render.feature
@@ -68,3 +68,8 @@ Feature: Project markdown render
When I go back to wiki page home
And I click on Rake tasks link
Then I see Rake tasks directory
+
+ 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
diff --git a/features/steps/project/project_markdown_render.rb b/features/steps/project/project_markdown_render.rb
index 11a3ff9d0cb..951c831838d 100644
--- a/features/steps/project/project_markdown_render.rb
+++ b/features/steps/project/project_markdown_render.rb
@@ -150,4 +150,16 @@ class Spinach::Features::ProjectMarkdownRender < Spinach::FeatureSteps
page.should have_content "backup_restore.md"
page.should have_content "maintenance.md"
end
+
+ Given 'I visit to the help page' do
+ visit help_path
+ end
+
+ And 'I select a page with markdown' do
+ click_link "Rake Tasks"
+ end
+
+ 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