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
f6249945
Commit
f6249945
authored
Apr 05, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove spec for Gitlab::Geo::AvatarDownloader
parent
d61ee263
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
25 deletions
+0
-25
spec/lib/gitlab/geo/avatar_downloader_spec.rb
spec/lib/gitlab/geo/avatar_downloader_spec.rb
+0
-25
No files found.
spec/lib/gitlab/geo/avatar_downloader_spec.rb
deleted
100644 → 0
View file @
d61ee263
require
'spec_helper'
describe
Gitlab
::
Geo
::
AvatarDownloader
do
let
(
:avatar
)
{
fixture_file_upload
(
Rails
.
root
+
'spec/fixtures/dk.png'
,
'image/png'
)
}
let
(
:user
)
{
create
(
:user
,
avatar:
avatar
)
}
let
(
:upload
)
{
Upload
.
find_by
(
model:
user
,
uploader:
'AvatarUploader'
)
}
context
'#download_from_primary'
do
it
'downlods the avatar'
do
allow_any_instance_of
(
Gitlab
::
Geo
::
FileTransfer
)
.
to
receive
(
:download_from_primary
).
and_return
(
100
)
downloader
=
described_class
.
new
(
upload
.
id
)
expect
(
downloader
.
execute
).
to
eq
(
100
)
end
it
'returns nil with unknown avatar'
do
downloader
=
described_class
.
new
(
10000
)
expect
(
downloader
).
not_to
receive
(
:download_from_primary
)
expect
(
downloader
.
execute
).
to
be_nil
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