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
Tatuya Kamada
gitlab-ce
Commits
62f4a9de
Commit
62f4a9de
authored
Feb 22, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Users don't get instructions to push to other users empty projects
Fixes #12518
parent
5803a530
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
1 deletion
+26
-1
app/views/projects/empty.html.haml
app/views/projects/empty.html.haml
+1
-1
features/explore/projects.feature
features/explore/projects.feature
+1
-0
features/project/project.feature
features/project/project.feature
+10
-0
features/steps/project/project.rb
features/steps/project/project.rb
+10
-0
features/steps/shared/paths.rb
features/steps/shared/paths.rb
+4
-0
No files found.
app/views/projects/empty.html.haml
View file @
62f4a9de
...
...
@@ -18,7 +18,7 @@
=
link_to
"adding README"
,
new_readme_path
,
class:
'underlined-link'
file to this project.
-
if
can?
(
current_user
,
:
download
_code
,
@project
)
-
if
can?
(
current_user
,
:
push
_code
,
@project
)
%div
{
class:
container_class
}
.prepend-top-20
.empty_wrapper
...
...
features/explore/projects.feature
View file @
62f4a9de
...
...
@@ -87,6 +87,7 @@ Feature: Explore Projects
Scenario
:
I
visit public project issues page as a non authorized user
Given
I visit project
"Community"
page
Then
I should not see command line instructions
And
I visit
"Community"
issues page
Then
I should see list of issues for
"Community"
project
...
...
features/project/project.feature
View file @
62f4a9de
...
...
@@ -86,3 +86,13 @@ Feature: Project
Given
I click notifications drop down button
When
I choose Mention setting
Then
I should see Notification saved message
Scenario
:
I
should see command line instructions
Given
I own an empty project
And
I visit my empty project page
And
I create bare repo
Then
I should see command line instructions
Scenario
:
I
should not see command line instructions
Given
I visit an empty project page
Then
I should not see command line instructions
features/steps/project/project.rb
View file @
62f4a9de
...
...
@@ -144,4 +144,14 @@ class Spinach::Features::Project < Spinach::FeatureSteps
expect
(
page
).
to
have_content
'Notification settings saved'
end
end
step
'I create bare repo'
do
click_link
'Create empty bare repository'
end
step
'I should see command line instructions'
do
page
.
within
".empty_wrapper"
do
expect
(
page
).
to
have_content
(
"Command line instructions"
)
end
end
end
features/steps/shared/paths.rb
View file @
62f4a9de
...
...
@@ -447,6 +447,10 @@ module SharedPaths
visit
namespace_project_path
(
project
.
namespace
,
project
)
end
step
"I should not see command line instructions"
do
expect
(
page
).
not_to
have_css
(
'.empty_wrapper'
)
end
# ----------------------------------------
# Public Projects
# ----------------------------------------
...
...
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