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
8a3807c8
Commit
8a3807c8
authored
May 28, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
49c50ee8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
spec/models/merge_request_spec.rb
spec/models/merge_request_spec.rb
+0
-19
No files found.
spec/models/merge_request_spec.rb
View file @
8a3807c8
...
@@ -82,25 +82,6 @@ describe MergeRequest do
...
@@ -82,25 +82,6 @@ describe MergeRequest do
end
end
end
end
describe
'#allow_source_branch_removal?'
do
it
'should not allow removal when mr is a fork'
do
subject
.
disallow_source_branch_removal?
.
should
be_true
end
it
'should not allow removal when the mr is not a fork, but the source branch is the root reference'
do
subject
.
target_project
=
subject
.
source_project
subject
.
source_branch
=
subject
.
source_project
.
repository
.
root_ref
subject
.
disallow_source_branch_removal?
.
should
be_true
end
it
'should not disallow removal when the mr is not a fork, and but source branch is not the root reference'
do
subject
.
target_project
=
subject
.
source_project
subject
.
source_branch
=
"Something Different
#{
subject
.
source_project
.
repository
.
root_ref
}
"
subject
.
for_fork?
.
should
be_false
subject
.
disallow_source_branch_removal?
.
should
be_false
end
end
describe
'detection of issues to be closed'
do
describe
'detection of issues to be closed'
do
let
(
:issue0
)
{
create
:issue
,
project:
subject
.
project
}
let
(
:issue0
)
{
create
:issue
,
project:
subject
.
project
}
let
(
:issue1
)
{
create
:issue
,
project:
subject
.
project
}
let
(
:issue1
)
{
create
:issue
,
project:
subject
.
project
}
...
...
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