Add CLI Base class for command line code (#25106)
This commit is contained in:
parent
d2e5430d4a
commit
384345b0de
33 changed files with 238 additions and 155 deletions
|
@ -3,7 +3,13 @@
|
|||
require 'rails_helper'
|
||||
require 'mastodon/cli/settings'
|
||||
|
||||
RSpec.describe Mastodon::CLI::Settings do
|
||||
describe Mastodon::CLI::Settings do
|
||||
describe '.exit_on_failure?' do
|
||||
it 'returns true' do
|
||||
expect(described_class.exit_on_failure?).to be true
|
||||
end
|
||||
end
|
||||
|
||||
describe 'subcommand "registrations"' do
|
||||
let(:cli) { Mastodon::CLI::Registrations.new }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue