Commit 2d25faf2 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix star tests

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 420ba211
...@@ -2,12 +2,12 @@ Feature: Project Star ...@@ -2,12 +2,12 @@ Feature: Project Star
Scenario: New projects have 0 stars Scenario: New projects have 0 stars
Given public project "Community" Given public project "Community"
When I visit project "Community" page When I visit project "Community" page
Then The project has 0 stars Then The project has no stars
Scenario: Empty projects show star count Scenario: Empty projects show star count
Given public empty project "Empty Public Project" Given public empty project "Empty Public Project"
When I visit empty project page 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 Scenario: Signed off users can't star projects
Given public project "Community" Given public project "Community"
......
...@@ -4,6 +4,10 @@ class Spinach::Features::ProjectStar < Spinach::FeatureSteps ...@@ -4,6 +4,10 @@ class Spinach::Features::ProjectStar < Spinach::FeatureSteps
include SharedPaths include SharedPaths
include SharedUser include SharedUser
step "The project has no stars" do
page.should_not have_content '.star-buttons'
end
step "The project has 0 stars" do step "The project has 0 stars" do
has_n_stars(0) has_n_stars(0)
end end
......
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