summaryrefslogtreecommitdiff
path: root/features/steps/dashboard/starred_projects.rb
diff options
context:
space:
mode:
Diffstat (limited to 'features/steps/dashboard/starred_projects.rb')
-rw-r--r--features/steps/dashboard/starred_projects.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/features/steps/dashboard/starred_projects.rb b/features/steps/dashboard/starred_projects.rb
new file mode 100644
index 00000000000..b9ad2f13e29
--- /dev/null
+++ b/features/steps/dashboard/starred_projects.rb
@@ -0,0 +1,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
+ within 'aside' do
+ page.should_not have_content('Shop')
+ end
+ end
+end