mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 11:11:11 +02:00
Capture output in cli/emoji spec (#37861)
This commit is contained in:
@@ -46,7 +46,8 @@ RSpec.describe Mastodon::CLI::Emoji do
|
||||
|
||||
it 'reports a successful purge' do
|
||||
expect { subject }
|
||||
.to change { CustomEmoji.by_domain_and_subdomains(blocked_domain).count }.to(0)
|
||||
.to output_results('OK')
|
||||
.and change { CustomEmoji.by_domain_and_subdomains(blocked_domain).count }.to(0)
|
||||
.and change { CustomEmoji.by_domain_and_subdomains('evil.org').count }.to(0)
|
||||
.and not_change { CustomEmoji.by_domain_and_subdomains(silenced_domain).count }
|
||||
.and(not_change { CustomEmoji.local.count })
|
||||
|
||||
Reference in New Issue
Block a user