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
d6537e3b
Commit
d6537e3b
authored
Feb 28, 2020
by
Nick Kipling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes to presenter tests
parent
d3b97477
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
ee/spec/presenters/packages/detail/package_presenter_spec.rb
ee/spec/presenters/packages/detail/package_presenter_spec.rb
+2
-6
No files found.
ee/spec/presenters/packages/detail/package_presenter_spec.rb
View file @
d6537e3b
...
...
@@ -4,8 +4,8 @@ require 'spec_helper'
describe
::
Packages
::
Detail
::
PackagePresenter
do
let_it_be
(
:user
)
{
create
(
:user
)
}
let
!
(
:project
)
{
create
(
:project
,
creator:
user
)
}
let
!
(
:package
)
{
create
(
:npm_package
,
:with_build
,
project:
project
)
}
let
_it_be
(
:project
)
{
create
(
:project
,
creator:
user
)
}
let
_it_be
(
:package
)
{
create
(
:npm_package
,
:with_build
,
project:
project
)
}
let
(
:presenter
)
{
described_class
.
new
(
package
)
}
let_it_be
(
:user_info
)
{
{
name:
user
.
name
,
avatar_url:
user
.
avatar_url
}
}
...
...
@@ -71,10 +71,6 @@ describe ::Packages::Detail::PackagePresenter do
it
'returns correct data when there is pipeline_info'
do
expect
(
presenter
.
build_pipeline_info
(
package
.
build_info
.
pipeline
)).
to
eq
pipeline_info
end
it
'returns nil when there is no pipeline_info'
do
expect
(
presenter
.
build_pipeline_info
(
nil
)).
to
eq
nil
end
end
context
'build_user_info'
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