BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
72d25a26
Commit
72d25a26
authored
Feb 01, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feature visit issues page for public project as auth and non auth user.
parent
468c9ce4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
public_projects.feature
features/public/public_projects.feature
+11
-0
projects_feature.rb
features/steps/public/projects_feature.rb
+22
-0
No files found.
features/public/public_projects.feature
View file @
72d25a26
...
...
@@ -62,3 +62,14 @@ Feature: Public Projects Feature
Given
public empty project
"Empty Public Project"
When
I visit empty project page
Then
I should see empty public project details
Scenario
:
I
visit public project issues page as a non authorized user
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
features/steps/public/projects_feature.rb
View file @
72d25a26
...
...
@@ -107,5 +107,27 @@ class Spinach::Features::PublicProjectsFeature < Spinach::FeatureSteps
project
=
Project
.
find_by
(
name:
'Community'
)
page
.
should
have_field
(
'project_clone'
,
with:
project
.
url_to_repo
)
end
step
'I visit "Community" issues page'
do
project
=
Project
.
find_by
(
name:
'Community'
)
create
(
:issue
,
title:
"Bug"
,
project:
project
)
create
(
:issue
,
title:
"New feature"
,
project:
project
)
visit
project_issues_path
(
project
)
end
step
'I should see list of issues for "Community" project'
do
project
=
Project
.
find_by
(
name:
'Community'
)
page
.
should
have_content
"Bug"
page
.
should
have_content
project
.
name
page
.
should
have_content
"New feature"
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment