From fa34901237cc244fe8b828d079af891e63de1c8f Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Thu, 2 Oct 2014 18:42:54 +0200 Subject: 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 --- features/steps/dashboard/help.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 features/steps/dashboard/help.rb (limited to 'features/steps/dashboard/help.rb') 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 -- cgit v1.2.1