Commit b8d73315 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Add tests for starred projects page

parent d36ee319
@dashboard
Feature: Dashboard Starred Projects
Background:
Given I sign in as a user
And public project "Community"
And I starred project "Community"
And I own project "Shop"
And I visit dashboard starred projects page
Scenario: I should see projects list
Then I should see project "Community"
And I should not see project "Shop"
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
...@@ -95,6 +95,10 @@ module SharedPaths ...@@ -95,6 +95,10 @@ module SharedPaths
current_path.should == dashboard_groups_path current_path.should == dashboard_groups_path
end end
step 'I visit dashboard starred projects page' do
visit starred_dashboard_projects_path
end
# ---------------------------------------- # ----------------------------------------
# Profile # Profile
# ---------------------------------------- # ----------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment