2023-04-07 21:39:34 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
2024-09-04 14:12:25 +09:00
|
|
|
RSpec.describe Admin::SystemCheck::BaseCheck do
|
2023-04-07 21:39:34 +09:00
|
|
|
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
|