2
0

Add shared example for CLI command specs (#28165)

This commit is contained in:
Matt Jankowski
2023-12-01 07:00:34 -05:00
committed by GitHub
parent 92fa9b109f
commit 7753e5f715
17 changed files with 28 additions and 81 deletions

View File

@@ -6,11 +6,7 @@ require 'mastodon/cli/ip_blocks'
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
it_behaves_like 'CLI Command'
describe '#add' do
let(:ip_list) do