summaryrefslogtreecommitdiff
path: root/features/steps/help.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-02-11 20:32:21 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-02-11 20:32:21 +0200
commitc61512d4e18a873df229ba2fddb28dfddc423009 (patch)
tree06c847304eb50e7720e169a27d40048f49b4c362 /features/steps/help.rb
parent6e47fbf5d9432c065199322a47bc465fccf9a132 (diff)
parent61748c993de8a38300c0c038cec5a07e6c324cd6 (diff)
downloadgitlab-ce-c61512d4e18a873df229ba2fddb28dfddc423009.tar.gz
Merge branch 'header-anchors' of github.com:cirosantilli/gitlab-elearn into cirosantilli-header-anchors
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: CHANGELOG
Diffstat (limited to 'features/steps/help.rb')
-rw-r--r--features/steps/help.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/features/steps/help.rb b/features/steps/help.rb
new file mode 100644
index 00000000000..aa147fd65ce
--- /dev/null
+++ b/features/steps/help.rb
@@ -0,0 +1,21 @@
+class Spinach::Features::Help < Spinach::FeatureSteps
+ include SharedAuthentication
+ include SharedPaths
+ include SharedMarkdown
+
+ step 'I visit the help page' do
+ visit help_path
+ end
+
+ step 'I visit the "Rake Tasks" help page' do
+ visit help_raketasks_path
+ end
+
+ step 'I should see "Rake Tasks" page markdown rendered' do
+ page.should have_content "GitLab provides some specific rake tasks to enable special features or perform maintenance tasks"
+ end
+
+ step 'Header "Rebuild project satellites" should have correct ids and links' do
+ header_should_have_correct_id_and_link(3, 'Rebuild project satellites', 'rebuild-project-satellites')
+ end
+end