diff options
author | Rémy Coutable <remy@rymai.me> | 2017-01-13 04:53:11 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-01-13 04:53:11 +0000 |
commit | ed85fdb218970497c212731ddc21ee53b1678346 (patch) | |
tree | 5e38bab575e5680204086307cfe372f76cdb966c /features | |
parent | f20d3cb3faa31c70be0f4d7b6e1428d142b8a48f (diff) | |
parent | e393151d76c5847de46e8d956e6c5947e321e156 (diff) | |
download | gitlab-ce-ed85fdb218970497c212731ddc21ee53b1678346.tar.gz |
Merge branch 'move-dashboard-archived-projects-spinach-to-rspec' into 'master'
Move dashboard archived projects spinach tests to rspec
See merge request !8431
Diffstat (limited to 'features')
-rw-r--r-- | features/dashboard/archived_projects.feature | 17 | ||||
-rw-r--r-- | features/steps/dashboard/archived_projects.rb | 26 |
2 files changed, 0 insertions, 43 deletions
diff --git a/features/dashboard/archived_projects.feature b/features/dashboard/archived_projects.feature deleted file mode 100644 index bed9282f1c6..00000000000 --- a/features/dashboard/archived_projects.feature +++ /dev/null @@ -1,17 +0,0 @@ -@dashboard -Feature: Dashboard Archived Projects - Background: - Given I sign in as a user - And I own project "Shop" - And I own project "Forum" - And project "Forum" is archived - And I visit dashboard page - - Scenario: I should see non-archived projects on dashboard - Then I should see "Shop" project link - And I should not see "Forum" project link - - Scenario: I toggle show of archived projects on dashboard - When I click "Show archived projects" link - Then I should see "Shop" project link - And I should see "Forum" project link diff --git a/features/steps/dashboard/archived_projects.rb b/features/steps/dashboard/archived_projects.rb deleted file mode 100644 index 6510f8d9b32..00000000000 --- a/features/steps/dashboard/archived_projects.rb +++ /dev/null @@ -1,26 +0,0 @@ -class Spinach::Features::DashboardArchivedProjects < Spinach::FeatureSteps - include SharedAuthentication - include SharedPaths - include SharedProject - - When 'project "Forum" is archived' do - project = Project.find_by(name: "Forum") - project.update_attribute(:archived, true) - end - - step 'I should see "Shop" project link' do - expect(page).to have_link "Shop" - end - - step 'I should not see "Forum" project link' do - expect(page).not_to have_link "Forum" - end - - step 'I should see "Forum" project link' do - expect(page).to have_link "Forum" - end - - step 'I click "Show archived projects" link' do - click_link "Show archived projects" - end -end |