gitlab-org--gitlab-foss/features/steps/dashboard/archived_projects.rb
Ciro Santilli fa34901237 Make Spinach test names consistent
- do not add Feature to feature titles
- titleize feature titles
- put steps on the same path as .feature files
- make feature titles match their path
2014-10-05 18:21:11 +02:00

22 lines
561 B
Ruby

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