diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-09-21 23:40:22 +0200 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-09-22 10:01:50 +0200 |
commit | ef6e94e37e0fce23acf32992476aeb63405be0c1 (patch) | |
tree | 3cfce6b15bab68f2213850672872de2ce420bae3 /features/steps/admin/projects.rb | |
parent | fda61a047ffb9b04bc4dd38e897088fde17fb3c1 (diff) | |
download | gitlab-ce-ef6e94e37e0fce23acf32992476aeb63405be0c1.tar.gz |
Replace old spinach step definitions with step.
Diffstat (limited to 'features/steps/admin/projects.rb')
-rw-r--r-- | features/steps/admin/projects.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/features/steps/admin/projects.rb b/features/steps/admin/projects.rb index 992aa46a8bc..e0015bfd37c 100644 --- a/features/steps/admin/projects.rb +++ b/features/steps/admin/projects.rb @@ -3,17 +3,17 @@ class AdminProjects < Spinach::FeatureSteps include SharedPaths include SharedAdmin - And 'I should see all projects' do + step '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 + step 'I click on first project' do click_link Project.first.name_with_namespace end - Then 'I should see project details' do + step 'I should see project details' do project = Project.first current_path.should == admin_project_path(project) page.should have_content(project.name_with_namespace) |