Skip to content

Commit

Permalink
Add spec for the CLI version task
Browse files Browse the repository at this point in the history
This causes all of the cli classes to be loaded, which is a big win
in code coverage LOC in exchange for this trivial spec addition.
  • Loading branch information
mjankowski committed Mar 13, 2023
1 parent 43ec9d2 commit eb58c8e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spec/lib/mastodon/cli_spec.rb
@@ -0,0 +1,14 @@
# frozen_string_literal: true

require 'rails_helper'
require 'cli'

describe Mastodon::CLI do
describe 'version' do
it 'returns the Mastodon version' do
expect { described_class.new.invoke(:version) }.to output(
a_string_including(Mastodon::Version.to_s)
).to_stdout
end
end
end

0 comments on commit eb58c8e

Please sign in to comment.