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

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDennis Schubert <mail@dennis-schubert.de>2020-02-04 16:38:49 +0300
committerDennis Schubert <mail@dennis-schubert.de>2020-02-04 16:38:49 +0300
commitbf55d07580d41532416e77f4be54300f3a5ee1a8 (patch)
treeb2740ac8de3cf1a8820cedf26389b9690348e092 /spec
parent2e7526bac53400e85c4cf01f9cd0598297c0fafc (diff)
Re-add sizes.raw to the photo JSON
because we need it for showing the raw image in the lightbox. This got lost, as the photo extension was made after API development started.
Diffstat (limited to 'spec')
-rw-r--r--spec/presenters/photo_presenter_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/presenters/photo_presenter_spec.rb b/spec/presenters/photo_presenter_spec.rb
index e5bcb5677..840a8ed71 100644
--- a/spec/presenters/photo_presenter_spec.rb
+++ b/spec/presenters/photo_presenter_spec.rb
@@ -34,6 +34,7 @@ describe PhotoPresenter do
expect(photo[:sizes][:small]).to be_truthy
expect(photo[:sizes][:medium]).to be_truthy
expect(photo[:sizes][:large]).to be_truthy
+ expect(photo[:sizes][:raw]).to be_truthy
end
# rubocop:enable Metrics/AbcSize
end