mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-05 09:21:11 +00:00
Reduce factory in admin helper
This commit is contained in:
parent
d5ed6f5383
commit
61e09f25e3
|
@ -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' }
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user