2023-12-01 23:00:34 +11:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2024-09-04 15:12:25 +10:00
|
|
|
RSpec.shared_examples 'CLI Command' do
|
2023-12-01 23:00:34 +11:00
|
|
|
it 'configures Thor to exit on failure' do
|
|
|
|
expect(described_class.exit_on_failure?).to be true
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'descends from the CLI base class' do
|
|
|
|
expect(described_class.new).to be_a(Mastodon::CLI::Base)
|
|
|
|
end
|
|
|
|
end
|