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
e1e618ac
Commit
e1e618ac
authored
Jun 15, 2017
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix object_store_uploader_spec.rb
parent
232acbc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
spec/uploaders/object_store_uploader_spec.rb
spec/uploaders/object_store_uploader_spec.rb
+8
-6
No files found.
spec/uploaders/object_store_uploader_spec.rb
View file @
e1e618ac
...
...
@@ -25,18 +25,20 @@ describe ObjectStoreUploader do
describe
'#file_storage?'
do
context
'when file storage is used'
do
before
do
uploader_class
.
storage
(
:file
)
expect
(
object
).
to
receive
(
:artifacts_file_store
).
and_return
(
described_class
::
LOCAL_STORE
)
end
it
{
is_expected
.
to
be_file_storage
}
it
{
expect
(
uploader
)
.
to
be_file_storage
}
end
context
'when is remote storage'
do
before
do
uploader_class
.
storage
(
:fog
)
uploader_class
.
storage_options
double
(
object_store:
double
(
enabled:
true
))
expect
(
object
).
to
receive
(
:artifacts_file_store
).
and_return
(
described_class
::
REMOTE_STORE
)
end
it
{
is_expected
.
not_to
be_file_storage
}
it
{
expect
(
uploader
)
.
not_to
be_file_storage
}
end
end
...
...
@@ -46,7 +48,7 @@ describe ObjectStoreUploader do
uploader_class
.
cache_storage
(
:file
)
end
it
{
is_expected
.
to
be_file_cache_storage
}
it
{
expect
(
uploader
)
.
to
be_file_cache_storage
}
end
context
'when is remote storage'
do
...
...
@@ -54,7 +56,7 @@ describe ObjectStoreUploader do
uploader_class
.
cache_storage
(
:fog
)
end
it
{
is_expected
.
not_to
be_file_cache_storage
}
it
{
expect
(
uploader
)
.
not_to
be_file_cache_storage
}
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