about summary refs log tree commit diff
path: root/spec
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-09-29 02:30:00 +0200
committerGitHub <noreply@github.com>2017-09-29 02:30:00 +0200
commit887cd94e963f49523af80d845cfe0ea900f7dadf (patch)
treeb55ceb9c6c6a5f603b515ef3457cdb26e90e8f4e /spec
parentd2f56d1cbc7ef985c2565ccc899a1a4f3c07e524 (diff)
Increase attachment descriptions to 420 characters (#5139)
Blaze it
Diffstat (limited to 'spec')
-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 f20698c45..9fce5bc4f 100644
--- a/spec/models/media_attachment_spec.rb
+++ b/spec/models/media_attachment_spec.rb
@@ -52,9 +52,9 @@ RSpec.describe MediaAttachment, type: :model do
 
   describe 'descriptions for remote attachments' do
     it 'are cut off at 140 characters' do
-      media = Fabricate(:media_attachment, description: 'foo' * 100, remote_url: 'http://example.com/blah.jpg')
+      media = Fabricate(:media_attachment, description: 'foo' * 1000, remote_url: 'http://example.com/blah.jpg')
 
-      expect(media.description.size).to be <= 140
+      expect(media.description.size).to be <= 420
     end
   end
 end