summaryrefslogtreecommitdiff
path: root/features/steps
diff options
context:
space:
mode:
authorVitaliy @blackst0ne Klachkov <blackst0ne.ru@gmail.com>2017-09-17 17:12:03 +1100
committerVitaliy @blackst0ne Klachkov <blackst0ne.ru@gmail.com>2017-09-17 17:12:03 +1100
commite6d5a6a370940d16891bb7e84e7b19bfab164c50 (patch)
treef7ec2950609e11c2b6e206716620f409d15df150 /features/steps
parent64664b645e2248e47da2a7d47e67b2e2c72f7954 (diff)
downloadgitlab-ce-e6d5a6a370940d16891bb7e84e7b19bfab164c50.tar.gz
Replace the 'project/archived.feature' spinach test with an rspec analog
Diffstat (limited to 'features/steps')
-rw-r--r--features/steps/project/archived.rb36
1 files changed, 0 insertions, 36 deletions
diff --git a/features/steps/project/archived.rb b/features/steps/project/archived.rb
deleted file mode 100644
index e4847180be9..00000000000
--- a/features/steps/project/archived.rb
+++ /dev/null
@@ -1,36 +0,0 @@
-class Spinach::Features::ProjectArchived < Spinach::FeatureSteps
- include SharedAuthentication
- include SharedProject
- include SharedPaths
-
- When 'project "Forum" is archived' do
- project = Project.find_by(name: "Forum")
- project.update_attribute(:archived, true)
- end
-
- When 'project "Shop" is archived' do
- project = Project.find_by(name: "Shop")
- project.update_attribute(:archived, true)
- end
-
- When 'I visit project "Forum" page' do
- project = Project.find_by(name: "Forum")
- visit project_path(project)
- end
-
- step 'I should not see "Archived"' do
- expect(page).not_to have_content "Archived"
- end
-
- step 'I should see "Archived"' do
- expect(page).to have_content "Archived"
- end
-
- When 'I set project archived' do
- click_link "Archive"
- end
-
- When 'I set project unarchived' do
- click_link "Unarchive"
- end
-end