Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'features/steps/dashboard/archived_projects.rb')
-rw-r--r--features/steps/dashboard/archived_projects.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/features/steps/dashboard/archived_projects.rb b/features/steps/dashboard/archived_projects.rb
new file mode 100644
index 00000000000..969baf92287
--- /dev/null
+++ b/features/steps/dashboard/archived_projects.rb
@@ -0,0 +1,22 @@
+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
+ page.should have_link "Shop"
+ end
+
+ step 'I should not see "Forum" project link' do
+ page.should_not have_link "Forum"
+ end
+
+ step 'I should see "Forum" project link' do
+ page.should have_link "Forum"
+ end
+end