summaryrefslogtreecommitdiff
path: root/features/steps/dashboard/starred_projects.rb
blob: 59c73fe63f249a0f63f811b67c1052b80eed0486 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
    page.within 'aside' do
      expect(page).not_to have_content('Shop')
    end
  end
end