mirror of
https://github.com/mastodon/mastodon.git
synced 2026-03-21 18:05:23 -05:00
Capture output in cli/emoji spec (#37861)
This commit is contained in:
parent
50255a345f
commit
ebf54afc1b
|
|
@ -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 })
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user