diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-03-13 22:36:39 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-03-13 22:36:39 +0200 |
commit | c8e1c53f43aa09c5e801cdcdc8f4b44576b34274 (patch) | |
tree | a1117aebab052fdd3783154327c79946459c8b71 /features/steps/admin/projects.rb | |
parent | 3f2d94105b9671fc7ccfd5e18631e525f8a7015d (diff) | |
parent | 170340e6b15f91e79cf683c892ec887c3115b317 (diff) | |
download | gitlab-ce-c8e1c53f43aa09c5e801cdcdc8f4b44576b34274.tar.gz |
Merge branch 'rm-dir-prefix' of https://github.com/cirosantilli/gitlab-elearn into cirosantilli-rm-dir-prefix
Diffstat (limited to 'features/steps/admin/projects.rb')
-rw-r--r-- | features/steps/admin/projects.rb | 22 |
1 files changed, 22 insertions, 0 deletions
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 |