From 9e8634180724578b8d5fa3cd652e53cfb3982d2d Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Mon, 16 Feb 2026 03:24:39 -0500 Subject: [PATCH] Capture output in `cli/emoji` spec (#37861) --- spec/lib/mastodon/cli/emoji_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/lib/mastodon/cli/emoji_spec.rb b/spec/lib/mastodon/cli/emoji_spec.rb index b21c533e9..c257bdf79 100644 --- a/spec/lib/mastodon/cli/emoji_spec.rb +++ b/spec/lib/mastodon/cli/emoji_spec.rb @@ -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 })