1
0

cli.rb 292 B

1234567891011
  1. # frozen_string_literal: true
  2. RSpec.shared_examples 'CLI Command' do
  3. it 'configures Thor to exit on failure' do
  4. expect(described_class.exit_on_failure?).to be true
  5. end
  6. it 'descends from the CLI base class' do
  7. expect(described_class.new).to be_a(Mastodon::CLI::Base)
  8. end
  9. end