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
|
2013-11-29 11:10:59 -05:00
|
|
|
page.should have_link "Shop"
|
|
|
|
end
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'I should not see "Forum" project link' do
|
2013-11-29 11:10:59 -05:00
|
|
|
page.should_not have_link "Forum"
|
|
|
|
end
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'I should see "Forum" project link' do
|
2013-11-29 11:10:59 -05:00
|
|
|
page.should have_link "Forum"
|
|
|
|
end
|
|
|
|
end
|