Reduce factory in admin helper

This commit is contained in:
Matt Jankowski 2025-07-25 12:09:43 -04:00
parent d5ed6f5383
commit 61e09f25e3

View File

@ -18,7 +18,7 @@ RSpec.describe FormattingHelper do
end
context 'with a spoiler and an emoji and a poll' do
let(:status) { Fabricate(:status, text: 'Hello :world: <>', spoiler_text: 'This is a spoiler<>', poll: Fabricate(:poll, options: %w(Yes<> No))) }
let(:status) { Fabricate(:status, text: 'Hello :world: <>', spoiler_text: 'This is a spoiler<>', poll: Fabricate.build(:poll, options: %w(Yes<> No))) }
before { Fabricate :custom_emoji, shortcode: 'world' }