1
0
Fork 0
forked from fedi/mastodon

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

This commit is contained in:
Yamagishi Kazutoshi 2017-06-05 17:03:01 +09:00 committed by Eugen Rochko
parent 037f96c5ae
commit 6adbd114c1

View file

@ -389,7 +389,6 @@ RSpec.describe AtomSerializer do
enclosure = entry.nodes.find { |node| node.name == 'link' && node[:rel] == 'enclosure' } enclosure = entry.nodes.find { |node| node.name == 'link' && node[:rel] == 'enclosure' }
expect(enclosure[:type]).to eq 'image/jpeg' 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$/ expect(enclosure[:href]).to match /^https:\/\/cb6e6126.ngrok.io\/system\/media_attachments\/files\/.+\/original\/attachment.jpg$/
end end