0
0
Fork 0

Add CLI Base class for command line code (#25106)

This commit is contained in:
Matt Jankowski 2023-05-24 05:55:40 -04:00 committed by GitHub
parent d2e5430d4a
commit 384345b0de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 238 additions and 155 deletions

View file

@ -3,9 +3,15 @@
require 'rails_helper'
require 'mastodon/cli/ip_blocks'
RSpec.describe Mastodon::CLI::IpBlocks do
describe Mastodon::CLI::IpBlocks do
let(:cli) { described_class.new }
describe '.exit_on_failure?' do
it 'returns true' do
expect(described_class.exit_on_failure?).to be true
end
end
describe '#add' do
let(:ip_list) do
[