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
0702f2e3
Commit
0702f2e3
authored
Sep 11, 2021
by
Guillaume Chauvel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update sum LFS size test
parent
7ea3c2ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
spec/models/project_statistics_spec.rb
spec/models/project_statistics_spec.rb
+3
-1
No files found.
spec/models/project_statistics_spec.rb
View file @
0702f2e3
...
...
@@ -294,15 +294,17 @@ RSpec.describe ProjectStatistics do
describe
'#update_lfs_objects_size'
do
let!
(
:lfs_object1
)
{
create
(
:lfs_object
,
size:
23
.
megabytes
)
}
let!
(
:lfs_object2
)
{
create
(
:lfs_object
,
size:
34
.
megabytes
)
}
let!
(
:lfs_object3
)
{
create
(
:lfs_object
,
size:
34
.
megabytes
)
}
let!
(
:lfs_objects_project1
)
{
create
(
:lfs_objects_project
,
project:
project
,
lfs_object:
lfs_object1
)
}
let!
(
:lfs_objects_project2
)
{
create
(
:lfs_objects_project
,
project:
project
,
lfs_object:
lfs_object2
)
}
let!
(
:lfs_objects_project3
)
{
create
(
:lfs_objects_project
,
project:
project
,
lfs_object:
lfs_object3
)
}
before
do
statistics
.
update_lfs_objects_size
end
it
"stores the size of related LFS objects"
do
expect
(
statistics
.
lfs_objects_size
).
to
eq
57
.
megabytes
expect
(
statistics
.
lfs_objects_size
).
to
eq
91
.
megabytes
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