Commit d40a7de170e57ec72eb362b4e015e19fd35780d3
1 parent
72d25a26
Exists in
spb-stable
and in
3 other branches
Feature for visit issues page for internal project as auth user.
Showing
2 changed files
with
29 additions
and
1 deletions
Show diff stats
features/public/public_projects.feature
| @@ -67,9 +67,15 @@ Feature: Public Projects Feature | @@ -67,9 +67,15 @@ Feature: Public Projects Feature | ||
| 67 | Given I visit project "Community" page | 67 | Given I visit project "Community" page |
| 68 | And I visit "Community" issues page | 68 | And I visit "Community" issues page |
| 69 | Then I should see list of issues for "Community" project | 69 | Then I should see list of issues for "Community" project |
| 70 | -@bug | 70 | + |
| 71 | Scenario: I visit public project issues page as authorized user | 71 | Scenario: I visit public project issues page as authorized user |
| 72 | Given I sign in as a user | 72 | Given I sign in as a user |
| 73 | Given I visit project "Community" page | 73 | Given I visit project "Community" page |
| 74 | And I visit "Community" issues page | 74 | And I visit "Community" issues page |
| 75 | Then I should see list of issues for "Community" project | 75 | Then I should see list of issues for "Community" project |
| 76 | + | ||
| 77 | + Scenario: I visit internal project issues page as authorized user | ||
| 78 | + Given I sign in as a user | ||
| 79 | + Given I visit project "Internal" page | ||
| 80 | + And I visit "Internal" issues page | ||
| 81 | + Then I should see list of issues for "Internal" project |
features/steps/public/projects_feature.rb
| @@ -129,5 +129,27 @@ class Spinach::Features::PublicProjectsFeature < Spinach::FeatureSteps | @@ -129,5 +129,27 @@ class Spinach::Features::PublicProjectsFeature < Spinach::FeatureSteps | ||
| 129 | page.should have_content project.name | 129 | page.should have_content project.name |
| 130 | page.should have_content "New feature" | 130 | page.should have_content "New feature" |
| 131 | end | 131 | end |
| 132 | + | ||
| 133 | + step 'I visit "Internal" issues page' do | ||
| 134 | + project = Project.find_by(name: 'Internal') | ||
| 135 | + create(:issue, | ||
| 136 | + title: "Internal Bug", | ||
| 137 | + project: project | ||
| 138 | + ) | ||
| 139 | + create(:issue, | ||
| 140 | + title: "New internal feature", | ||
| 141 | + project: project | ||
| 142 | + ) | ||
| 143 | + visit project_issues_path(project) | ||
| 144 | + end | ||
| 145 | + | ||
| 146 | + | ||
| 147 | + step 'I should see list of issues for "Internal" project' do | ||
| 148 | + project = Project.find_by(name: 'Internal') | ||
| 149 | + | ||
| 150 | + page.should have_content "Internal Bug" | ||
| 151 | + page.should have_content project.name | ||
| 152 | + page.should have_content "New internal feature" | ||
| 153 | + end | ||
| 132 | end | 154 | end |
| 133 | 155 |