~cytrogen/masto-fe

ref: 6b7c47311db19d44b5d2016a6d3f029427a67624 masto-fe/spec/lib/admin/system_check/base_check_spec.rb -rw-r--r-- 575 bytes
6b7c4731 — Claire Merge commit '072112867b9a3ec090ad2c92d6363b47b2265d74' into glitch-soc/merge-upstream 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# frozen_string_literal: true

require 'rails_helper'

describe Admin::SystemCheck::BaseCheck do
  subject(:check) { described_class.new(user) }

  let(:user) { Fabricate(:user) }

  describe 'skip?' do
    it 'returns false' do
      expect(check.skip?).to be false
    end
  end

  describe 'pass?' do
    it 'raises not implemented error' do
      expect { check.pass? }.to raise_error(NotImplementedError)
    end
  end

  describe 'message' do
    it 'raises not implemented error' do
      expect { check.message }.to raise_error(NotImplementedError)
    end
  end
end