Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
features/public/public_projects.feature
features/public/public_projects.feature
+11
-0
features/steps/public/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