debian-mirror-gitlab/features/steps/dashboard/archived_projects.rb

23 lines
573 B
Ruby
Raw Normal View History

2015-04-26 12:48:37 +05:30
class Spinach::Features::DashboardArchivedProjects < Spinach::FeatureSteps
2014-09-02 18:07:02 +05:30
include SharedAuthentication
include SharedPaths
include SharedProject
When 'project "Forum" is archived' do
project = Project.find_by(name: "Forum")
project.update_attribute(:archived, true)
end
2015-04-26 12:48:37 +05:30
step 'I should see "Shop" project link' do
2015-09-11 14:41:01 +05:30
expect(page).to have_link "Shop"
2014-09-02 18:07:02 +05:30
end
2015-04-26 12:48:37 +05:30
step 'I should not see "Forum" project link' do
2015-09-11 14:41:01 +05:30
expect(page).not_to have_link "Forum"
2014-09-02 18:07:02 +05:30
end
2015-04-26 12:48:37 +05:30
step 'I should see "Forum" project link' do
2015-09-11 14:41:01 +05:30
expect(page).to have_link "Forum"
2014-09-02 18:07:02 +05:30
end
end