Reduce `RSpec/ExampleLength` in PostStatusService spec example (#29105)
parent
93a5b3f9df
commit
0df86d77fd
|
@ -228,13 +228,7 @@ RSpec.describe PostStatusService, type: :service do
|
||||||
subject.call(
|
subject.call(
|
||||||
account,
|
account,
|
||||||
text: 'test status update',
|
text: 'test status update',
|
||||||
media_ids: [
|
media_ids: Array.new(5) { Fabricate(:media_attachment, account: account) }.map(&:id)
|
||||||
Fabricate(:media_attachment, account: account),
|
|
||||||
Fabricate(:media_attachment, account: account),
|
|
||||||
Fabricate(:media_attachment, account: account),
|
|
||||||
Fabricate(:media_attachment, account: account),
|
|
||||||
Fabricate(:media_attachment, account: account),
|
|
||||||
].map(&:id)
|
|
||||||
)
|
)
|
||||||
end.to raise_error(
|
end.to raise_error(
|
||||||
Mastodon::ValidationError,
|
Mastodon::ValidationError,
|
||||||
|
|
Loading…
Reference in New Issue