Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2018-08-07 09:04:33 +0300
committerSean McGivern <sean@mcgivern.me.uk>2018-08-07 09:04:33 +0300
commitfac4f50cf6bd923cbf6c5b7a9a69c39e5b2d9181 (patch)
tree1cf02b46016ae05e488bf5991e724814a919707f /spec/models
parentdd627072b3f94df0483004425778a99ca369a09f (diff)
Send resize parameters for avatars
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/concerns/avatarable_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/models/concerns/avatarable_spec.rb b/spec/models/concerns/avatarable_spec.rb
index 9faf21bfbbd..76f734079b7 100644
--- a/spec/models/concerns/avatarable_spec.rb
+++ b/spec/models/concerns/avatarable_spec.rb
@@ -43,6 +43,10 @@ describe Avatarable do
expect(project.avatar_path(only_path: only_path)).to eq(avatar_path)
end
+ it 'returns the expected avatar path with width parameter' do
+ expect(project.avatar_path(only_path: only_path, size: 128)).to eq(avatar_path + "?width=128")
+ end
+
context "when avatar is stored remotely" do
before do
stub_uploads_object_storage(AvatarUploader)