2014-10-02 12:42:54 -04:00
|
|
|
class Spinach::Features::DashboardArchivedProjects < Spinach::FeatureSteps
|
2013-11-29 11:10:59 -05:00
|
|
|
include SharedAuthentication
|
|
|
|
include SharedPaths
|
|
|
|
include SharedProject
|
|
|
|
|
|
|
|
When 'project "Forum" is archived' do
|
2014-01-19 13:55:59 -05:00
|
|
|
project = Project.find_by(name: "Forum")
|
2013-11-29 11:10:59 -05:00
|
|
|
project.update_attribute(:archived, true)
|
|
|
|
end
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'I should see "Shop" project link' do
|
2015-06-12 00:44:13 -04:00
|
|
|
expect(page).to have_link "Shop"
|
2013-11-29 11:10:59 -05:00
|
|
|
end
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'I should not see "Forum" project link' do
|
2015-06-12 00:44:13 -04:00
|
|
|
expect(page).not_to have_link "Forum"
|
2013-11-29 11:10:59 -05:00
|
|
|
end
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'I should see "Forum" project link' do
|
2015-06-12 00:44:13 -04:00
|
|
|
expect(page).to have_link "Forum"
|
2013-11-29 11:10:59 -05:00
|
|
|
end
|
2016-03-04 10:56:56 -05:00
|
|
|
|
|
|
|
step 'I click "Show archived projects" link' do
|
|
|
|
click_link "Show archived projects"
|
|
|
|
end
|
2013-11-29 11:10:59 -05:00
|
|
|
end
|