summaryrefslogtreecommitdiff
path: root/features/steps/project
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-01-23 11:08:57 +0100
committerMarin Jankovski <marin@gitlab.com>2014-01-23 11:08:57 +0100
commitc6b9767e74421bae7f0532ce7fab8753863e94f0 (patch)
tree86dab190253f51a8b6322ef8aab3ec02e5aa804f /features/steps/project
parent462161a3b07369d0df68b0298929b3f89cf46c03 (diff)
downloadgitlab-ce-c6b9767e74421bae7f0532ce7fab8753863e94f0.tar.gz
Test if the views behave correctly with reference style relative links.
Diffstat (limited to 'features/steps/project')
-rw-r--r--features/steps/project/project_markdown_render.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/features/steps/project/project_markdown_render.rb b/features/steps/project/project_markdown_render.rb
index da044e46ebd..a74a8909140 100644
--- a/features/steps/project/project_markdown_render.rb
+++ b/features/steps/project/project_markdown_render.rb
@@ -21,6 +21,8 @@ class Spinach::Features::ProjectMarkdownRender < Spinach::FeatureSteps
page.should have_link "GitLab API website"
page.should have_link "Rake tasks"
page.should have_link "backup and restore procedure"
+ page.should have_link "GitLab API doc directory"
+ page.should have_link "Maintenance"
end
And 'I click on Gitlab API in README' do
@@ -42,6 +44,26 @@ class Spinach::Features::ProjectMarkdownRender < Spinach::FeatureSteps
page.should have_content "maintenance.md"
end
+
+ And 'I click on GitLab API doc directory in README' do
+ click_link "GitLab API doc directory"
+ end
+
+ Then 'I should see correct doc/api directory rendered' do
+ current_path.should == project_tree_path(@project, "master/doc/api")
+ page.should have_content "README.md"
+ page.should have_content "users.md"
+ end
+
+ And 'I click on Maintenance in README' do
+ click_link "Maintenance"
+ end
+
+ Then 'I should see correct maintenance file rendered' do
+ current_path.should == project_blob_path(@project, "doc/raketasks/maintenance.md")
+ page.should have_content "bundle exec rake gitlab:env:info RAILS_ENV=production"
+ end
+
And 'I navigate to the doc/api/README' do
click_link "doc"
click_link "api"