Browse Source

Capture output in `cli/emoji` spec (#37861)

pull/1389/head
Matt Jankowski 4 weeks ago committed by Misty De Meo
parent
commit
9e86341807
No known key found for this signature in database
GPG Key ID: 76CF846A2F674B2C
  1. 3
      spec/lib/mastodon/cli/emoji_spec.rb

3
spec/lib/mastodon/cli/emoji_spec.rb

@ -46,7 +46,8 @@ RSpec.describe Mastodon::CLI::Emoji do
it 'reports a successful purge' do it 'reports a successful purge' do
expect { subject } 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 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.by_domain_and_subdomains(silenced_domain).count }
.and(not_change { CustomEmoji.local.count }) .and(not_change { CustomEmoji.local.count })

Loading…
Cancel
Save