mirror of
https://github.com/funamitech/mastodon
synced 2024-12-30 22:48:38 +09:00
28 lines
575 B
Ruby
28 lines
575 B
Ruby
|
# 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
|