mirror of https://github.com/mastodon/mastodon
Add spec coverage for media CLI usage command (#28167)
This commit is contained in:
parent
272592d16d
commit
92fa9b109f
|
@ -78,4 +78,16 @@ describe Mastodon::CLI::Media do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe '#usage' do
|
||||||
|
context 'without options' do
|
||||||
|
let(:options) { {} }
|
||||||
|
|
||||||
|
it 'reports about storage size' do
|
||||||
|
expect { cli.invoke(:usage, [], options) }.to output(
|
||||||
|
a_string_including('0 Bytes')
|
||||||
|
).to_stdout
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue