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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
6037c17c
Commit
6037c17c
authored
Jun 21, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bring this test from EE
parent
14e35ac9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
spec/uploaders/object_storage_spec.rb
spec/uploaders/object_storage_spec.rb
+12
-0
No files found.
spec/uploaders/object_storage_spec.rb
View file @
6037c17c
...
@@ -191,6 +191,18 @@ describe ObjectStorage do
...
@@ -191,6 +191,18 @@ describe ObjectStorage do
it
"calls a cache path"
do
it
"calls a cache path"
do
expect
{
|
b
|
uploader
.
use_file
(
&
b
)
}.
to
yield_with_args
(
%r[tmp/cache]
)
expect
{
|
b
|
uploader
.
use_file
(
&
b
)
}.
to
yield_with_args
(
%r[tmp/cache]
)
end
end
it
"cleans up the cached file"
do
cached_path
=
''
uploader
.
use_file
do
|
path
|
cached_path
=
path
expect
(
File
.
exist?
(
cached_path
)).
to
be_truthy
end
expect
(
File
.
exist?
(
cached_path
)).
to
be_falsey
end
end
end
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