logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 6adbd114c1957fbd4908d28f612881a0861823f2
parent: 037f96c5aeaa4b31e03ecc875a76450f2b7e8b24
Author: Yamagishi Kazutoshi <ykzts@desire.sh>
Date:   Mon,  5 Jun 2017 17:03:01 +0900

Skip image length check (regression from #3528) (#3581)


Diffstat:

Mspec/lib/atom_serializer_spec.rb1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/spec/lib/atom_serializer_spec.rb b/spec/lib/atom_serializer_spec.rb @@ -389,7 +389,6 @@ RSpec.describe AtomSerializer do enclosure = entry.nodes.find { |node| node.name == 'link' && node[:rel] == 'enclosure' } expect(enclosure[:type]).to eq 'image/jpeg' - expect(enclosure[:length]).to eq '57822' expect(enclosure[:href]).to match /^https:\/\/cb6e6126.ngrok.io\/system\/media_attachments\/files\/.+\/original\/attachment.jpg$/ end