summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-02-02 00:59:48 +0100
committerMarin Jankovski <marin@gitlab.com>2014-02-02 00:59:48 +0100
commitd40a7de170e57ec72eb362b4e015e19fd35780d3 (patch)
treee1e6f3ae681b89cc4f2b288362762085e3547654 /features
parent72d25a26bd6383a530f9da6bd01f994a5825237b (diff)
downloadgitlab-ce-d40a7de170e57ec72eb362b4e015e19fd35780d3.tar.gz
Feature for visit issues page for internal project as auth user.
Diffstat (limited to 'features')
-rw-r--r--features/public/public_projects.feature8
-rw-r--r--features/steps/public/projects_feature.rb22
2 files changed, 29 insertions, 1 deletions
diff --git a/features/public/public_projects.feature b/features/public/public_projects.feature
index 7d6e8e0679f..adfe97a4ce3 100644
--- a/features/public/public_projects.feature
+++ b/features/public/public_projects.feature
@@ -67,9 +67,15 @@ Feature: Public Projects Feature
Given I visit project "Community" page
And I visit "Community" issues page
Then I should see list of issues for "Community" project
-@bug
+
Scenario: I visit public project issues page as authorized user
Given I sign in as a user
Given I visit project "Community" page
And I visit "Community" issues page
Then I should see list of issues for "Community" project
+
+ Scenario: I visit internal project issues page as authorized user
+ Given I sign in as a user
+ Given I visit project "Internal" page
+ And I visit "Internal" issues page
+ Then I should see list of issues for "Internal" project
diff --git a/features/steps/public/projects_feature.rb b/features/steps/public/projects_feature.rb
index 1b77bf26e0c..0453a1e62b5 100644
--- a/features/steps/public/projects_feature.rb
+++ b/features/steps/public/projects_feature.rb
@@ -129,5 +129,27 @@ class Spinach::Features::PublicProjectsFeature < Spinach::FeatureSteps
page.should have_content project.name
page.should have_content "New feature"
end
+
+ step 'I visit "Internal" issues page' do
+ project = Project.find_by(name: 'Internal')
+ create(:issue,
+ title: "Internal Bug",
+ project: project
+ )
+ create(:issue,
+ title: "New internal feature",
+ project: project
+ )
+ visit project_issues_path(project)
+ end
+
+
+ step 'I should see list of issues for "Internal" project' do
+ project = Project.find_by(name: 'Internal')
+
+ page.should have_content "Internal Bug"
+ page.should have_content project.name
+ page.should have_content "New internal feature"
+ end
end