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
692c956c
Commit
692c956c
authored
Nov 11, 2016
by
Patricio Cano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test for `LfsHelper` refactor
parent
f5addad4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
spec/requests/lfs_http_spec.rb
spec/requests/lfs_http_spec.rb
+11
-0
No files found.
spec/requests/lfs_http_spec.rb
View file @
692c956c
...
...
@@ -943,6 +943,17 @@ describe 'Git LFS API and storage' do
end
end
context
'and project has limit enabled but will stay under the limit'
do
before
do
allow_any_instance_of
(
Project
).
to
receive_messages
(
actual_size_limit:
200
,
size_limit_enabled?:
true
)
put_finalize
end
it
'responds with status 200'
do
expect
(
response
).
to
have_http_status
(
200
)
end
end
context
'invalid tempfiles'
do
it
'rejects slashes in the tempfile name (path traversal'
do
put_finalize
(
'foo/bar'
)
...
...
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