diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-05-08 00:02:08 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-05-21 03:16:23 -0500 |
commit | 66886d4367b64d6860c55ab6f8a57a31ed9b59de (patch) | |
tree | dbf5f9f4f5c974a24210c8adcaa692e2c90cdb0b /spec | |
parent | dca70079b1f01624b5656b2811e046d114f913e0 (diff) |
RSpec: Test for correct media description limit.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/media_attachment_spec.rb | 4 |
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 |