debian-mirror-gitlab/features/steps/dashboard/starred_projects.rb
2015-04-26 09:18:37 +02:00

15 lines
393 B
Ruby

class Spinach::Features::DashboardStarredProjects < Spinach::FeatureSteps
include SharedAuthentication
include SharedPaths
include SharedProject
step 'I starred project "Community"' do
current_user.toggle_star(Project.find_by(name: 'Community'))
end
step 'I should not see project "Shop"' do
within 'aside' do
page.should_not have_content('Shop')
end
end
end