Skip to content

Commit 1103ebd

Browse files
mjankowskiClearlyClaire
authored andcommitted
Capture output in cli/emoji spec (mastodon#37861)
1 parent 96a96a7 commit 1103ebd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/lib/mastodon/cli/emoji_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646

4747
it 'reports a successful purge' do
4848
expect { subject }
49-
.to change { CustomEmoji.by_domain_and_subdomains(blocked_domain).count }.to(0)
49+
.to output_results('OK')
50+
.and change { CustomEmoji.by_domain_and_subdomains(blocked_domain).count }.to(0)
5051
.and change { CustomEmoji.by_domain_and_subdomains('evil.org').count }.to(0)
5152
.and not_change { CustomEmoji.by_domain_and_subdomains(silenced_domain).count }
5253
.and(not_change { CustomEmoji.local.count })

0 commit comments

Comments
 (0)