mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-29 00:31:37 +01:00
11 lines
292 B
Ruby
11 lines
292 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec.shared_examples 'CLI Command' do
|
|
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
|