From 2d25faf21c85df4930dfd989be4f53d9fb0be87f Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 24 Jul 2014 23:25:38 +0300 Subject: [PATCH] Fix star tests Signed-off-by: Dmitriy Zaporozhets --- features/project/star.feature | 4 ++-- features/steps/project/star.rb | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/features/project/star.feature b/features/project/star.feature index d8d898155fe..3322f891805 100644 --- a/features/project/star.feature +++ b/features/project/star.feature @@ -2,12 +2,12 @@ Feature: Project Star Scenario: New projects have 0 stars Given public project "Community" When I visit project "Community" page - Then The project has 0 stars + Then The project has no stars Scenario: Empty projects show star count Given public empty project "Empty Public Project" When I visit empty project page - Then The project has 0 stars + Then The project has no stars Scenario: Signed off users can't star projects Given public project "Community" diff --git a/features/steps/project/star.rb b/features/steps/project/star.rb index 11102900ed4..562df04e340 100644 --- a/features/steps/project/star.rb +++ b/features/steps/project/star.rb @@ -4,6 +4,10 @@ class Spinach::Features::ProjectStar < Spinach::FeatureSteps include SharedPaths include SharedUser + step "The project has no stars" do + page.should_not have_content '.star-buttons' + end + step "The project has 0 stars" do has_n_stars(0) end