mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-15 01:06:08 -05:00
Add validation assertion in AccountWarningPreset model spec (#40242)
This commit is contained in:
@@ -3,7 +3,11 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe AccountWarningPreset do
|
||||
describe 'alphabetical' do
|
||||
describe 'Validations' do
|
||||
it { is_expected.to validate_presence_of(:text) }
|
||||
end
|
||||
|
||||
describe '.alphabetical' do
|
||||
let(:first) { Fabricate(:account_warning_preset, title: 'aaa', text: 'aaa') }
|
||||
let(:second) { Fabricate(:account_warning_preset, title: 'bbb', text: 'aaa') }
|
||||
let(:third) { Fabricate(:account_warning_preset, title: 'bbb', text: 'bbb') }
|
||||
|
||||
Reference in New Issue
Block a user