mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-23 12:18:06 +01:00
23 lines
478 B
Ruby
23 lines
478 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
require 'mastodon/cli/main'
|
|
|
|
describe Mastodon::CLI::Main do
|
|
subject { cli.invoke(action, arguments, options) }
|
|
|
|
let(:cli) { described_class.new }
|
|
let(:arguments) { [] }
|
|
let(:options) { {} }
|
|
|
|
it_behaves_like 'CLI Command'
|
|
|
|
describe '#version' do
|
|
let(:action) { :version }
|
|
|
|
it 'returns the Mastodon version' do
|
|
expect { subject }
|
|
.to output_results(Mastodon::Version.to_s)
|
|
end
|
|
end
|
|
end
|