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
8f8f2d2a
Commit
8f8f2d2a
authored
Jun 28, 2019
by
Michael Kozono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use local variables
parent
1498049c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ee/spec/lib/gitlab/geo/lfs_transfer_spec.rb
ee/spec/lib/gitlab/geo/lfs_transfer_spec.rb
+2
-2
No files found.
ee/spec/lib/gitlab/geo/lfs_transfer_spec.rb
View file @
8f8f2d2a
...
...
@@ -6,8 +6,6 @@ describe Gitlab::Geo::LfsTransfer do
set
(
:primary_node
)
{
create
(
:geo_node
,
:primary
)
}
set
(
:secondary_node
)
{
create
(
:geo_node
)
}
set
(
:lfs_object
)
{
create
(
:lfs_object
,
:with_file
)
}
let
(
:content
)
{
SecureRandom
.
random_bytes
(
10
)
}
let
(
:size
)
{
File
.
stat
(
lfs_object
.
file
.
path
).
size
}
subject
do
described_class
.
new
(
lfs_object
)
...
...
@@ -30,6 +28,8 @@ describe Gitlab::Geo::LfsTransfer do
context
'when the HTTP response is successful'
do
it
'returns a successful result'
do
content
=
SecureRandom
.
random_bytes
(
10
)
size
=
content
.
bytesize
expect
(
FileUtils
).
to
receive
(
:mv
).
with
(
anything
,
lfs_object
.
file
.
path
).
and_call_original
response
=
double
(
:response
,
success?:
true
)
expect
(
Gitlab
::
HTTP
).
to
receive
(
:get
).
and_yield
(
content
.
to_s
).
and_return
(
response
)
...
...
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