23 lines
544 B
Ruby
23 lines
544 B
Ruby
![]() |
class DashboardWithArchivedProjects < 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
|
||
|
|
||
|
Then 'I should see "Shop" project link' do
|
||
|
page.should have_link "Shop"
|
||
|
end
|
||
|
|
||
|
Then 'I should not see "Forum" project link' do
|
||
|
page.should_not have_link "Forum"
|
||
|
end
|
||
|
|
||
|
Then 'I should see "Forum" project link' do
|
||
|
page.should have_link "Forum"
|
||
|
end
|
||
|
end
|