base_check_spec.rb 581 B

123456789101112131415161718192021222324252627
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. RSpec.describe Admin::SystemCheck::BaseCheck do
  4. subject(:check) { described_class.new(user) }
  5. let(:user) { Fabricate(:user) }
  6. describe 'skip?' do
  7. it 'returns false' do
  8. expect(check.skip?).to be false
  9. end
  10. end
  11. describe 'pass?' do
  12. it 'raises not implemented error' do
  13. expect { check.pass? }.to raise_error(NotImplementedError)
  14. end
  15. end
  16. describe 'message' do
  17. it 'raises not implemented error' do
  18. expect { check.message }.to raise_error(NotImplementedError)
  19. end
  20. end
  21. end