~cytrogen/masto-fe

ref: f906e21a4fa2b035ee565ed55eeaa629df48e2e6 masto-fe/spec/lib/mastodon/cli/main_spec.rb -rw-r--r-- 464 bytes
f906e21a — Daniel M Brasil Add test coverage for `Mastodon::CLI::Accounts#refresh` (#25196) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

require 'rails_helper'
require 'mastodon/cli/main'

describe Mastodon::CLI::Main do
  describe '.exit_on_failure?' do
    it 'returns true' do
      expect(described_class.exit_on_failure?).to be true
    end
  end

  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