BigW Consortium Gitlab

starred_projects.rb 411 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
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
11
    page.within '.projects-list' do
12
      expect(page).not_to have_content('Shop')
13 14 15
    end
  end
end