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
dcf408d3
Commit
dcf408d3
authored
Dec 06, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add tests for base_performance_artifact and head_performance_artifact
parent
0e85ce11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
spec/ee/spec/models/ee/merge_request_spec.rb
spec/ee/spec/models/ee/merge_request_spec.rb
+22
-0
No files found.
spec/ee/spec/models/ee/merge_request_spec.rb
View file @
dcf408d3
...
...
@@ -195,6 +195,28 @@ describe MergeRequest do
end
end
describe
'#base_performance_artifact'
do
before
do
allow
(
subject
.
base_pipeline
).
to
receive
(
:performance_artifact
)
.
and_return
(
1
)
end
it
'delegates to merge request diff'
do
expect
(
subject
.
base_performance_artifact
).
to
eq
(
1
)
end
end
describe
'#head_performance_artifact'
do
before
do
allow
(
subject
.
head_pipeline
).
to
receive
(
:performance_artifact
)
.
and_return
(
1
)
end
it
'delegates to merge request diff'
do
expect
(
subject
.
head_performance_artifact
).
to
eq
(
1
)
end
end
describe
'#has_codeclimate_data?'
do
context
'with codeclimate artifact'
do
before
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