1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-24 07:06:18 +09:00

Avoid local block var assignment in ap/process_status_update_service spec (#29210)

This commit is contained in:
Matt Jankowski 2024-02-16 02:41:25 -05:00 committed by GitHub
parent d4d0565b0f
commit fc4f823464
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -218,7 +218,8 @@ RSpec.describe ActivityPub::ProcessStatusUpdateService, type: :service do
end
it 'does not update the text, spoiler_text or edited_at' do
expect { subject.call(status, json, json) }.to_not(change { s = status.reload; [s.text, s.spoiler_text, s.edited_at] })
expect { subject.call(status, json, json) }
.to_not(change { status.reload.attributes.slice('text', 'spoiler_text', 'edited_at').values })
end
end