about summary refs log tree commit diff
path: root/spec/models
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-05-08 00:02:08 -0500
committermultiple creatures <dev@multiple-creature.party>2019-05-21 03:16:23 -0500
commit66886d4367b64d6860c55ab6f8a57a31ed9b59de (patch)
treedbf5f9f4f5c974a24210c8adcaa692e2c90cdb0b /spec/models
parentdca70079b1f01624b5656b2811e046d114f913e0 (diff)
RSpec: Test for correct media description limit.
Diffstat (limited to 'spec/models')
-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 266cd4920..0333c56d8 100644
--- a/spec/models/media_attachment_spec.rb
+++ b/spec/models/media_attachment_spec.rb
@@ -136,10 +136,10 @@ RSpec.describe MediaAttachment, type: :model do
   end
 
   describe 'descriptions for remote attachments' do
-    it 'are cut off at 140 characters' do
+    it 'are cut off at 666 characters' do
       media = Fabricate(:media_attachment, description: 'foo' * 1000, remote_url: 'http://example.com/blah.jpg')
 
-      expect(media.description.size).to be <= 420
+      expect(media.description.size).to be <= 666
     end
   end
 end