From 170340e6b15f91e79cf683c892ec887c3115b317 Mon Sep 17 00:00:00 2001 From: Ciro Santillli Date: Sun, 23 Feb 2014 10:04:56 +0100 Subject: Remove dir prefix and suffix from tests inside dir. --- features/steps/admin/projects.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 features/steps/admin/projects.rb (limited to 'features/steps/admin/projects.rb') diff --git a/features/steps/admin/projects.rb b/features/steps/admin/projects.rb new file mode 100644 index 00000000000..b410b23851b --- /dev/null +++ b/features/steps/admin/projects.rb @@ -0,0 +1,22 @@ +class AdminProjects < Spinach::FeatureSteps + include SharedAuthentication + include SharedPaths + include SharedAdmin + + And 'I should see all projects' do + Project.all.each do |p| + page.should have_content p.name_with_namespace + end + end + + And 'I click on first project' do + click_link Project.first.name_with_namespace + end + + Then 'I should see project details' do + project = Project.first + current_path.should == admin_project_path(project) + page.should have_content(project.name_with_namespace) + page.should have_content(project.creator.name) + end +end -- cgit v1.2.1