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
53e7bad5
Commit
53e7bad5
authored
Oct 05, 2017
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check permissions on file
parent
faae8fbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
spec/lib/gitlab/geo/transfer_spec.rb
spec/lib/gitlab/geo/transfer_spec.rb
+3
-1
No files found.
spec/lib/gitlab/geo/transfer_spec.rb
View file @
53e7bad5
...
...
@@ -34,7 +34,9 @@ describe Gitlab::Geo::Transfer do
expect
(
HTTParty
).
to
receive
(
:get
).
and_yield
(
content
.
to_s
).
and_return
(
response
)
expect
(
subject
.
download_from_primary
).
to
eq
(
size
)
expect
(
File
.
stat
(
lfs_object
.
file
.
path
).
size
).
to
eq
(
size
)
stat
=
File
.
stat
(
lfs_object
.
file
.
path
)
expect
(
stat
.
size
).
to
eq
(
size
)
expect
(
stat
.
mode
&
0777
).
to
eq
(
0666
-
File
.
umask
)
expect
(
File
.
binread
(
lfs_object
.
file
.
path
)).
to
eq
(
content
)
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