2
0

Improve spec coverage for models/announcement class (#28350)

This commit is contained in:
Matt Jankowski
2023-12-14 05:29:10 -05:00
committed by GitHub
parent d791b47058
commit 28e1a7a394
7 changed files with 227 additions and 4 deletions

View File

@@ -59,7 +59,7 @@ RSpec.describe CustomEmoji do
describe '.from_text' do
subject { described_class.from_text(text, nil) }
let!(:emojo) { Fabricate(:custom_emoji) }
let!(:emojo) { Fabricate(:custom_emoji, shortcode: 'coolcat') }
context 'with plain text' do
let(:text) { 'Hello :coolcat:' }