summaryrefslogtreecommitdiff
path: root/features/steps/dashboard
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@gmail.com>2014-10-02 18:42:54 +0200
committerCiro Santilli <ciro.santilli@gmail.com>2014-10-05 18:21:11 +0200
commitfa34901237cc244fe8b828d079af891e63de1c8f (patch)
treeb165b52a7ff478d7338068caab39ae62b7b1d06e /features/steps/dashboard
parentac71c386f98fa9b88381abbf9d20e79f57bd7957 (diff)
downloadgitlab-ce-fa34901237cc244fe8b828d079af891e63de1c8f.tar.gz
Make Spinach test names consistent
- do not add Feature to feature titles - titleize feature titles - put steps on the same path as .feature files - make feature titles match their path
Diffstat (limited to 'features/steps/dashboard')
-rw-r--r--features/steps/dashboard/archived_projects.rb (renamed from features/steps/dashboard/with_archived_projects.rb)2
-rw-r--r--features/steps/dashboard/help.rb21
2 files changed, 22 insertions, 1 deletions
diff --git a/features/steps/dashboard/with_archived_projects.rb b/features/steps/dashboard/archived_projects.rb
index 256629382a7..969baf92287 100644
--- a/features/steps/dashboard/with_archived_projects.rb
+++ b/features/steps/dashboard/archived_projects.rb
@@ -1,4 +1,4 @@
-class Spinach::Features::DashboardWithArchivedProjects < Spinach::FeatureSteps
+class Spinach::Features::DashboardArchivedProjects < Spinach::FeatureSteps
include SharedAuthentication
include SharedPaths
include SharedProject
diff --git a/features/steps/dashboard/help.rb b/features/steps/dashboard/help.rb
new file mode 100644
index 00000000000..ef433c57c6e
--- /dev/null
+++ b/features/steps/dashboard/help.rb
@@ -0,0 +1,21 @@
+class Spinach::Features::DashboardHelp < 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_page_path("raketasks", "maintenance")
+ end
+
+ step 'I should see "Rake Tasks" page markdown rendered' do
+ page.should have_content "Gather information about GitLab and the system it runs on"
+ end
+
+ step 'Header "Rebuild project satellites" should have correct ids and links' do
+ header_should_have_correct_id_and_link(2, '(Re-)Create satellite repositories', 're-create-satellite-repositories', '.documentation')
+ end
+end