about summary refs log tree commit diff
path: root/spec/models/media_attachment_spec.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-11-04 13:00:16 +0100
committermultiple creatures <dev@multiple-creature.party>2020-02-21 03:34:42 -0600
commite19765e0f2e0b7e99e8c7c5b4285b8ca83892c99 (patch)
treec27d6a6d02c3f243fb80d0f3ee7d01ca458f0123 /spec/models/media_attachment_spec.rb
parente6bb4bd747a0120dd0207aecbb7c5c67b7caa165 (diff)
port tootsuite#12262 to monsterfork: Fix remote media descriptions being cut off at 420 chars
* Fix remote media descriptions being cut off at 420 chars

Fixes #12258

* Fix tests
Diffstat (limited to 'spec/models/media_attachment_spec.rb')
-rw-r--r--spec/models/media_attachment_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/media_attachment_spec.rb b/spec/models/media_attachment_spec.rb
index e823f1713..456bc4216 100644
--- a/spec/models/media_attachment_spec.rb
+++ b/spec/models/media_attachment_spec.rb
@@ -151,10 +151,10 @@ RSpec.describe MediaAttachment, type: :model do
   end
 
   describe 'descriptions for remote attachments' do
-    it 'are cut off at 666 characters' do
+    it 'are cut off at 1500 characters' do
       media = Fabricate(:media_attachment, description: 'foo' * 1000, remote_url: 'http://example.com/blah.jpg')
 
-      expect(media.description.size).to be <= 666
+      expect(media.description.size).to be <= 1_500
     end
   end
 end