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
a563065f
Commit
a563065f
authored
Sep 03, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7523 from Razer6/fix_branch_delete
Fix branch remove for branches containing a '/'
parents
c1b31dee
50c2efea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
destroy.js.haml
app/views/projects/branches/destroy.js.haml
+1
-3
branches.feature
features/project/commits/branches.feature
+6
-0
browse_branches.rb
features/steps/project/browse_branches.rb
+11
-0
No files found.
app/views/projects/branches/destroy.js.haml
View file @
a563065f
:plain
$(".js-branch-
#{
@branch_name
}
").remove();
$('.js-totalbranch-count').html("
#{
@repository
.
branches
.
size
}
")
$('.js-totalbranch-count').html("
#{
@repository
.
branches
.
size
}
")
features/project/commits/branches.feature
View file @
a563065f
...
...
@@ -17,3 +17,9 @@ Feature: Project Browse branches
And
I click new branch link
When
I submit new branch form
Then
I should see new branch created
@javascript
Scenario
:
I
delete a branch
Given
I visit project branches page
And
I click branch 'improve/awesome' delete link
Then
I should not see branch 'improve/awesome'
features/steps/project/browse_branches.rb
View file @
a563065f
...
...
@@ -43,4 +43,15 @@ class ProjectBrowseBranches < Spinach::FeatureSteps
page
.
should
have_content
'deploy_keys'
end
end
step
"I click branch 'improve/awesome' delete link"
do
within
'.js-branch-improve\/awesome'
do
find
(
'.btn-remove'
).
click
sleep
0.05
end
end
step
"I should not see branch 'improve/awesome'"
do
page
.
all
(
visible:
true
).
should_not
have_content
'improve/awesome'
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