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
3af0fe3e
Commit
3af0fe3e
authored
Dec 23, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bug/broken_path_change' of /home/git/repositories/gitlab/gitlabhq
parents
cc0d550f
b8b8a34b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
4 deletions
+18
-4
update_context.rb
app/contexts/projects/update_context.rb
+1
-1
project.feature
features/project/project.feature
+5
-0
project.rb
features/steps/project/project.rb
+12
-3
No files found.
app/contexts/projects/update_context.rb
View file @
3af0fe3e
...
@@ -9,7 +9,7 @@ module Projects
...
@@ -9,7 +9,7 @@ module Projects
new_branch
=
params
[
:project
].
delete
(
:default_branch
)
new_branch
=
params
[
:project
].
delete
(
:default_branch
)
if
project
.
repository
.
exists?
&&
new_branch
!=
project
.
default_branch
if
project
.
repository
.
exists?
&&
new_branch
&&
new_branch
!=
project
.
default_branch
project
.
change_head
(
new_branch
)
project
.
change_head
(
new_branch
)
end
end
...
...
features/project/project.feature
View file @
3af0fe3e
...
@@ -19,3 +19,8 @@ Feature: Project Feature
...
@@ -19,3 +19,8 @@ Feature: Project Feature
And
change project settings
And
change project settings
And
I save project
And
I save project
Then
I should see project with new settings
Then
I should see project with new settings
Scenario
:
I
change project path
When
I visit edit project
"Shop"
page
And
change project path settings
Then
I should see project with new path settings
features/steps/project/project.rb
View file @
3af0fe3e
...
@@ -3,16 +3,25 @@ class ProjectFeature < Spinach::FeatureSteps
...
@@ -3,16 +3,25 @@ class ProjectFeature < Spinach::FeatureSteps
include
SharedProject
include
SharedProject
include
SharedPaths
include
SharedPaths
And
'change project settings'
do
step
'change project settings'
do
fill_in
'project_name'
,
with:
'NewName'
fill_in
'project_name'
,
with:
'NewName'
uncheck
'project_issues_enabled'
uncheck
'project_issues_enabled'
end
end
And
'I save project'
do
step
'I save project'
do
click_button
'Save changes'
click_button
'Save changes'
end
end
Then
'I should see project with new settings'
do
step
'I should see project with new settings'
do
find_field
(
'project_name'
).
value
.
should
==
'NewName'
find_field
(
'project_name'
).
value
.
should
==
'NewName'
end
end
step
'change project path settings'
do
fill_in
"project_path"
,
with:
"new-path"
click_button
"Rename"
end
step
'I should see project with new path settings'
do
project
.
path
.
should
==
"new-path"
end
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