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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
c25176ee
Commit
c25176ee
authored
Feb 15, 2019
by
Olivier Gonzalez
Committed by
Douglas Barbosa Alexandre
Feb 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicate spec
parent
144ca906
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
21 deletions
+0
-21
spec/models/merge_request_spec.rb
spec/models/merge_request_spec.rb
+0
-21
No files found.
spec/models/merge_request_spec.rb
View file @
c25176ee
...
@@ -435,7 +435,6 @@ describe MergeRequest do
...
@@ -435,7 +435,6 @@ describe MergeRequest do
it
'does not cache issues from external trackers'
do
it
'does not cache issues from external trackers'
do
issue
=
ExternalIssue
.
new
(
'JIRA-123'
,
subject
.
project
)
issue
=
ExternalIssue
.
new
(
'JIRA-123'
,
subject
.
project
)
commit
=
double
(
'commit1'
,
safe_message:
"Fixes
#{
issue
.
to_reference
}
"
)
commit
=
double
(
'commit1'
,
safe_message:
"Fixes
#{
issue
.
to_reference
}
"
)
allow
(
subject
).
to
receive
(
:commits
).
and_return
([
commit
])
allow
(
subject
).
to
receive
(
:commits
).
and_return
([
commit
])
expect
{
subject
.
cache_merge_request_closes_issues!
(
subject
.
author
)
}.
not_to
raise_error
expect
{
subject
.
cache_merge_request_closes_issues!
(
subject
.
author
)
}.
not_to
raise_error
...
@@ -2591,26 +2590,6 @@ describe MergeRequest do
...
@@ -2591,26 +2590,6 @@ describe MergeRequest do
end
end
end
end
describe
'#base_pipeline'
do
let
(
:pipeline_arguments
)
do
{
project:
project
,
ref:
merge_request
.
target_branch
,
sha:
merge_request
.
diff_base_sha
}
end
let
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
source_project:
project
)
}
let!
(
:first_pipeline
)
{
create
(
:ci_pipeline_without_jobs
,
pipeline_arguments
)
}
let!
(
:last_pipeline
)
{
create
(
:ci_pipeline_without_jobs
,
pipeline_arguments
)
}
it
'returns latest pipeline'
do
expect
(
merge_request
.
base_pipeline
).
to
eq
(
last_pipeline
)
end
end
describe
'#base_pipeline'
do
describe
'#base_pipeline'
do
let
(
:pipeline_arguments
)
do
let
(
:pipeline_arguments
)
do
{
{
...
...
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